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 | 6 |
1 files changed, 4 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 a994be238f1..68e0d6f5c1a 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 @@ -72,8 +72,10 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node) *os << be_nl; - // Generate the iostream operator overload for this exception. - node->gen_iostream_op_hdr (os); + // 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; |