summaryrefslogtreecommitdiff
path: root/cli/runtime-inline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/runtime-inline.cxx')
-rw-r--r--cli/runtime-inline.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/runtime-inline.cxx b/cli/runtime-inline.cxx
index 4d95a78..cb0e0e4 100644
--- a/cli/runtime-inline.cxx
+++ b/cli/runtime-inline.cxx
@@ -12,6 +12,7 @@ generate_runtime_inline (context& ctx)
{
ostream& os (ctx.os);
string const& inl (ctx.inl);
+ string const& os_type (ctx.options.ostream_type ());
ctx.cli_open ();
@@ -31,8 +32,8 @@ generate_runtime_inline (context& ctx)
os << "// exception" << endl
<< "//" << endl
- << inl << "std::ostream&" << endl
- << "operator<< (std::ostream& os, const exception& e)"
+ << inl << os_type << "&" << endl
+ << "operator<< (" << os_type << "& os, const exception& e)"
<< "{"
<< "e.print (os);"
<< "return os;"