My code is full of calls to assert(condition). In the debug version I use g++ -g which triggers my assertions. Unexpectedly, the same assertions ar
assert(condition)
g++ -g
The -g flag doesn't affect the operation of assert, it just ensures that various debugging symbols are available.
-g
assert
Setting NDEBUG is the standard (as in official, ISO standard) way of disabling assertions.
NDEBUG