We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4eb1f commit d7e3e00Copy full SHA for d7e3e00
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java
@@ -2630,9 +2630,9 @@ private void generateConstPropertyMethods(
2630
values);
2631
2632
sb.append(String.format("\n" +
2633
- indent + " SBE_NODISCARD %1$s %2$s(const std::uint64_t index) const\n" +
+ indent + " SBE_NODISCARD static SBE_CONSTEXPR %1$s %2$s(const std::uint64_t index)\n" +
2634
indent + " {\n" +
2635
- indent + " static const std::uint8_t %2$sValues[] = { %3$s, 0 };\n\n" +
+ indent + " const std::uint8_t %2$sValues[] = { %3$s, 0 };\n\n" +
2636
2637
indent + " return (char)%2$sValues[index];\n" +
2638
indent + " }\n",
0 commit comments