Boost logo

Boost Users :

Subject: Re: [Boost-users] help with BOOST_DISABLE_ASSERTS
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-10 02:09:51


>
> You're probably not defining BOOST_DISABLE_ASSERTS
> before including boost/assert.hpp. As I recall, the definition of
> BOOST_ASSERT can be changed by changing BOOST_DISABLE_ASSERTS
> and reincluding boost/assert.hpp

Thanks.

This works in Release mode:

#ifdef NDEBUG
#define BOOST_DISABLE_ASSERTS
#endif

I would have thought that BOOST_DISABLE_ASSERTS would also be defined
without the #ifdef condition but ...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net