Skip to content

Commit 5978f98

Browse files
committed
[C++]: add accessor for actingVersion to fixed flyweight to align with message flyweight and to also silence warnings about unused private fields for fixed flyweights.
1 parent 2841f62 commit 5978f98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,10 @@ private CharSequence generateFixedFlyweightCode(final String className, final in
15911591
" {\n" +
15921592
" return m_bufferLength;\n" +
15931593
" }\n\n" +
1594+
" std::uint64_t actingVersion() const SBE_NOEXCEPT\n" +
1595+
" {\n" +
1596+
" return m_actingVersion;\n" +
1597+
" }\n\n" +
15941598
" static SBE_CONSTEXPR %3$s sbeSchemaId() SBE_NOEXCEPT\n" +
15951599
" {\n" +
15961600
" return %4$s;\n" +

0 commit comments

Comments
 (0)