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 7709a7e commit a7e800aCopy full SHA for a7e800a
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java
@@ -3009,6 +3009,11 @@ private CharSequence generateMessageLength(
3009
final StringBuilder sb = new StringBuilder();
3010
3011
new Formatter(sb).format("\n" +
3012
+ indent + "SBE_NODISCARD static SBE_CONSTEXPR bool isConstLength() SBE_NOEXCEPT\n" +
3013
+ indent + "{\n" +
3014
+ indent + " return " + ((groups.isEmpty() && varData.isEmpty()) ? "true" : "false") + ";\n" +
3015
+ indent + "}\n\n" +
3016
+
3017
indent + "SBE_NODISCARD static SBE_CONSTEXPR_14 size_t computeLength(%1$s)\n" +
3018
indent + "{\n" +
3019
"#if defined(__GNUG__) && !defined(__clang__)\n" +
0 commit comments