From ac06b99dc48c9aa4a9b3409f214d396e819ed983 Mon Sep 17 00:00:00 2001 From: Chad Elliott Date: Thu, 15 Dec 2022 09:41:37 -0600 Subject: Only emit the require_truncation_ boolean if CDR support is enabled. --- TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'TAO/TAO_IDL') 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 << "};"; } -- cgit v1.2.1