summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-12-15 09:41:37 -0600
committerChad Elliott <elliottc@objectcomputing.com>2022-12-15 09:41:37 -0600
commitac06b99dc48c9aa4a9b3409f214d396e819ed983 (patch)
tree28c94ecca7c0756fcf19d227048bffc1f32fad08
parentb5eb7cc3715e4a458ef63d1a8175c7c901eec121 (diff)
downloadATCD-ac06b99dc48c9aa4a9b3409f214d396e819ed983.tar.gz
Only emit the require_truncation_ boolean if CDR support is enabled.
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
index ce0e205990b..d051fe38e52 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
@@ -237,8 +237,12 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
this->gen_pd (node);
}
- *os << be_nl
- << "CORBA::Boolean require_truncation_ {false};" << be_uidt_nl
+ if (be_global->cdr_support ())
+ {
+ *os << be_nl
+ << "CORBA::Boolean require_truncation_ {false};";
+ }
+ *os << be_uidt_nl
<< "};";
}