Skip to content

Commit a4430f2

Browse files
authored
[C++] make message header members constexpr (#971)
1 parent 8005dbc commit a4430f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,10 +2673,10 @@ private CharSequence generateMessageFlyweightCode(
26732673
"%22$s" +
26742674

26752675
"public:\n" +
2676-
" static const %1$s SBE_BLOCK_LENGTH = %2$s;\n" +
2677-
" static const %3$s SBE_TEMPLATE_ID = %4$s;\n" +
2678-
" static const %5$s SBE_SCHEMA_ID = %6$s;\n" +
2679-
" static const %7$s SBE_SCHEMA_VERSION = %8$s;\n" +
2676+
" static constexpr %1$s SBE_BLOCK_LENGTH = %2$s;\n" +
2677+
" static constexpr %3$s SBE_TEMPLATE_ID = %4$s;\n" +
2678+
" static constexpr %5$s SBE_SCHEMA_ID = %6$s;\n" +
2679+
" static constexpr %7$s SBE_SCHEMA_VERSION = %8$s;\n" +
26802680
" static constexpr const char* SBE_SEMANTIC_VERSION = \"%13$s\";\n\n" +
26812681

26822682
" enum MetaAttribute\n" +

0 commit comments

Comments
 (0)