Commit caa074e8 authored by Brad King's avatar Brad King 💬
Browse files

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

parent a0257415
...@@ -229,7 +229,7 @@ void cmDocumentation::PrintUsageSection(std::ostream& os, ...@@ -229,7 +229,7 @@ void cmDocumentation::PrintUsageSection(std::ostream& os,
const cmDocumentationEntry* section) const cmDocumentationEntry* section)
{ {
if(!section) { return; } if(!section) { return; }
std::ios::fmtflags flags = os.flags(); long flags = static_cast<long>(os.flags());
os.setf(flags | std::ios::left); os.setf(flags | std::ios::left);
for(const cmDocumentationEntry* op = section; op->brief; ++op) for(const cmDocumentationEntry* op = section; op->brief; ++op)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment