Skip to content

Commit

Permalink
Merge pull request #403 from jwillemsen/jwi-bitmaskcleanup
Browse files Browse the repository at this point in the history
Cleanup and simplify CDR code for bitmask
  • Loading branch information
jwillemsen authored Oct 21, 2024
2 parents 77a9c74 + 733a2bc commit 8cded67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ridlbe/c++11/templates/cli/src/bitmask_cdr.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// generated from <%= ridl_template_path %>
TAO_CORBA::Boolean operator<< (TAO_OutputCDR &strm, const <%= scoped_cxxname %> &_tao_bitmask)
{
std::underlying_type_t<<%= scoped_cxxname %>::_flags> const _tao_temp { _tao_bitmask };
return strm << <%= bitbound.cdr_from_fmt % "_tao_temp" %>;
% _arg = "std::underlying_type_t<#{scoped_cxxname}::_flags>(_tao_bitmask)"
return strm << <%= bitbound.cdr_from_fmt % _arg %>;
}

TAO_CORBA::Boolean operator>> (TAO_InputCDR &strm, <%= scoped_cxxname %> &_tao_bitmask)
Expand All @@ -13,7 +13,7 @@ TAO_CORBA::Boolean operator>> (TAO_InputCDR &strm, <%= scoped_cxxname %> &_tao_b

if (_tao_success)
{
_tao_bitmask = static_cast<<%= scoped_cxxtype %>> (_tao_temp);
_tao_bitmask = <%= scoped_cxxtype %> (_tao_temp);
}

return _tao_success;
Expand Down

0 comments on commit 8cded67

Please sign in to comment.