Avoid assert statements with side effects
assert
statements are not compiled in when using the Release
or RelWithDebInfo
build modes, which means that code relying on the side effects from an assert
will break in those modes...
assert
statements are not compiled in when using the Release
or RelWithDebInfo
build modes, which means that code relying on the side effects from an assert
will break in those modes...