Browse Source

ERR: Use of std::ios::fmtflags is not portable to older compilers.

Brad King 23 years ago
parent
commit
caa074e8b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmDocumentation.cxx

+ 1 - 1
Source/cmDocumentation.cxx

@@ -229,7 +229,7 @@ void cmDocumentation::PrintUsageSection(std::ostream& os,
                                         const cmDocumentationEntry* section)
 {
   if(!section) { return; }
-  std::ios::fmtflags flags = os.flags();
+  long flags = static_cast<long>(os.flags());
   os.setf(flags | std::ios::left);
   for(const cmDocumentationEntry* op = section; op->brief; ++op)
     {