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