Skip to content

Commit

Permalink
[C++] make message header members constexpr (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd authored Feb 6, 2024
1 parent 8005dbc commit a4430f2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2673,10 +2673,10 @@ private CharSequence generateMessageFlyweightCode(
"%22$s" +

"public:\n" +
" static const %1$s SBE_BLOCK_LENGTH = %2$s;\n" +
" static const %3$s SBE_TEMPLATE_ID = %4$s;\n" +
" static const %5$s SBE_SCHEMA_ID = %6$s;\n" +
" static const %7$s SBE_SCHEMA_VERSION = %8$s;\n" +
" static constexpr %1$s SBE_BLOCK_LENGTH = %2$s;\n" +
" static constexpr %3$s SBE_TEMPLATE_ID = %4$s;\n" +
" static constexpr %5$s SBE_SCHEMA_ID = %6$s;\n" +
" static constexpr %7$s SBE_SCHEMA_VERSION = %8$s;\n" +
" static constexpr const char* SBE_SEMANTIC_VERSION = \"%13$s\";\n\n" +

" enum MetaAttribute\n" +
Expand Down

0 comments on commit a4430f2

Please sign in to comment.