diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp index 342fcc6a103..0b1149ebfa9 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp @@ -53,10 +53,10 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node) // generate the CDR << and >> operator declarations os->indent (); - *os << be_global->stub_export_macro () << " CORBA::Boolean" + *os << idl_global->stub_export_macro () << " CORBA::Boolean" << " operator<< (TAO_OutputCDR &, const " << node->name () << " &);" << be_nl; - *os << be_global->stub_export_macro () << " CORBA::Boolean" + *os << idl_global->stub_export_macro () << " CORBA::Boolean" << " operator>> (TAO_InputCDR &, " << node->name () << " &);\n"; @@ -74,6 +74,11 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node) *os << be_nl; + // Generate the iostream operator overload for this exception, + // unless it is suppressed. + if (idl_global->gen_except_ostream_op ()) + node->gen_iostream_op_hdr (os); + node->cli_hdr_cdr_op_gen (1); return 0; } |