summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
index c65afad6779..f55a5c83d83 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
@@ -53,6 +53,8 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ *os << be_global->core_versioning_begin () << be_nl;
+
*os << be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator<< (TAO_OutputCDR &, const " << node->name ()
<< " &);" << be_nl;
@@ -60,6 +62,7 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node)
<< " operator>> (TAO_InputCDR &, "
<< node->name () << " &);";
+ *os << be_global->core_versioning_end () << be_nl;
// Set the substate as generating code for the types defined in our scope.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_SCOPE);