From a4430f2a60a9764b9e5697411693f91aacc70194 Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Tue, 6 Feb 2024 18:36:32 +0000 Subject: [PATCH] [C++] make message header members constexpr (#971) --- .../uk/co/real_logic/sbe/generation/cpp/CppGenerator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java b/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java index c82a0f0a14..54a1683371 100755 --- a/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java +++ b/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java @@ -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" +