summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-13 10:38:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-13 10:38:29 +0200
commit95c04fc446b302ca95b652799eab92394779bcb7 (patch)
treeeb1b07aea3da40025007ad1ee495a4ddc17f6237 /cli
parent47a0fa12397770ea49ea80f164dba8e0f82e97d1 (diff)
Workaround for VC++ 8.0
Diffstat (limited to 'cli')
-rw-r--r--cli/generator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/generator.cxx b/cli/generator.cxx
index 3d7fa52..f1ce1e0 100644
--- a/cli/generator.cxx
+++ b/cli/generator.cxx
@@ -325,7 +325,9 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
auto_rm.add (man_path);
}
- ostream& os (ops.stdout_ () ? cout : man);
+ // The explicit cast helps VC++ 8.0 overcome its issues.
+ //
+ ostream& os (ops.stdout_ () ? cout : static_cast<ostream&> (man));
if (prologue.is_open ())
os << prologue.rdbuf ();
@@ -381,7 +383,9 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
auto_rm.add (html_path);
}
- ostream& os (ops.stdout_ () ? cout : html);
+ // The explicit cast helps VC++ 8.0 overcome its issues.
+ //
+ ostream& os (ops.stdout_ () ? cout : static_cast<ostream&> (html));
if (prologue.is_open ())
os << prologue.rdbuf ();