From 95c04fc446b302ca95b652799eab92394779bcb7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 13 Dec 2009 10:38:29 +0200 Subject: Workaround for VC++ 8.0 --- cli/generator.cxx | 8 ++++++-- 1 file 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 (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 (html)); if (prologue.is_open ()) os << prologue.rdbuf (); -- cgit v1.1