Skip to content

Commit 12cdd13

Browse files
committed
[C++] Add a constructor overload to composites that uses default schema version.
1 parent 7097b58 commit 12cdd13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,12 @@ private CharSequence generateFixedFlyweightCode(final String className, final in
15601560
" %1$s(buffer, 0, bufferLength, actingVersion)\n" +
15611561
" {\n" +
15621562
" }\n\n" +
1563+
" %1$s(\n" +
1564+
" char *buffer,\n" +
1565+
" const std::uint64_t bufferLength) :\n" +
1566+
" %1$s(buffer, 0, bufferLength, sbeSchemaVersion())\n" +
1567+
" {\n" +
1568+
" }\n\n" +
15631569
" %1$s &wrap(char *buffer, const std::uint64_t offset, const std::uint64_t actingVersion," +
15641570
" const std::uint64_t bufferLength)\n" +
15651571
" {\n" +

0 commit comments

Comments
 (0)