How to deactivate the assertion test in a C++ code ?
Compile the code with g++ using the --NDEBUG option
g++
--NDEBUG
Compile the code with g++ using the -DNDEBUG option
-DNDEBUG
Add #define NODEBUG in the header for all code files
#define NODEBUG
Add #define NO_DEBUG in the header for all code files
#define NO_DEBUG