Boost logo

Boost Users :

Subject: [Boost-users] help with BOOST_DISABLE_ASSERTS
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-07 16:19:13

Hi All,

#include <boost/assert.hpp>
#include <call.h>

int main(){
  return 0;

If, for testing purposes, I define call() as BOOST_ASSERT(false); with
or without -O2 as a compiler option, there are no assert failed messages
during execution, as desired.

In my actual program, however, call depends on many headers. If I
artificially add BOOST_ASSERT(false); in one of them, it is not ignored
with -O2 i.e. I get Assertion failed: (false), function call. I use

Am I using BOOST_DISABLE_ASSERTS correctly? How do I go about fixing
this problem?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at