Skip to content

Commit 7b00c21

Browse files
committed
[C++] Tag copy constructor/assignment operators noexcept.
1 parent c1f5c24 commit 7b00c21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,11 +1451,11 @@ private static CharSequence generateConstructorsAndOperators(final String classN
14511451
" {\n" +
14521452
" reset(buffer, 0, bufferLength, actingBlockLength, actingVersion);\n" +
14531453
" }\n\n" +
1454-
" %1$s(const %1$s& codec)\n" +
1454+
" %1$s(const %1$s& codec) SBE_NOEXCEPT\n" +
14551455
" {\n" +
14561456
" reset(codec);\n" +
14571457
" }\n\n" +
1458-
" %1$s& operator=(const %1$s& codec)\n" +
1458+
" %1$s& operator=(const %1$s& codec) SBE_NOEXCEPT\n" +
14591459
" {\n" +
14601460
" reset(codec);\n" +
14611461
" return *this;\n" +
@@ -1492,7 +1492,7 @@ private CharSequence generateMessageFlyweightCode(final String className, final
14921492
" m_positionPtr = &m_position;\n" +
14931493
" sbePosition(offset + m_actingBlockLength);\n" +
14941494
" }\n\n" +
1495-
" inline void reset(const %10$s& codec)\n" +
1495+
" inline void reset(const %10$s& codec) SBE_NOEXCEPT\n" +
14961496
" {\n" +
14971497
" m_buffer = codec.m_buffer;\n" +
14981498
" m_offset = codec.m_offset;\n" +

0 commit comments

Comments
 (0)