Skip to content

Commit

Permalink
Cleanup and simplify CDR code for bitmask
Browse files Browse the repository at this point in the history
    * ridlbe/c++11/templates/cli/src/bitmask_cdr.erb:
  • Loading branch information
jwillemsen committed Oct 21, 2024
1 parent 77a9c74 commit 733a2bc
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 733a2bc

Please sign in to comment.