Skip to content

Commit

Permalink
Merge pull request #341 from jwillemsen/jwi-idl2cpp11v17
Browse files Browse the repository at this point in the history
Use std::integral_constant of uint8_t, not uint32_t, this matches the…
  • Loading branch information
jwillemsen authored Jan 16, 2024
2 parents 91229dd + 9df8aa1 commit cc799e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ridlbe/c++11/templates/cli/hdr/bitmask_idl_traits.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct traits <<%= scoped_cxxtype %>>
using underlying_type = <%= bitbound.cxx_type %>;

/// bit_bound
using bit_bound = std::integral_constant<uint32_t, <%= bitbound_bits %>>;
using bit_bound = std::integral_constant<uint8_t, <%= bitbound_bits %>>;

template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
Expand Down
2 changes: 1 addition & 1 deletion ridlbe/c++11/templates/cli/hdr/enum_idl_traits.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct traits <<%= scoped_cxxtype %>>
using underlying_type = <%= bitbound.cxx_type %>;

/// bit_bound
using bit_bound = std::integral_constant<uint32_t, <%= bitbound_bits %>>;
using bit_bound = std::integral_constant<uint8_t, <%= bitbound_bits %>>;

template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
Expand Down

0 comments on commit cc799e3

Please sign in to comment.