Boost logo

Boost :

Subject: Re: [boost] suggestion on assertion macros
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-03-14 13:43:12


Mateusz Loskot wrote:
> I forgotten about -Wextra option and now GCC 4.4.1 reports the
> same worning, indeed. I was wrong, the assert macro is not that clever as
> I suggested

Which is not quite surprising as the C standard says this:

<quote>
If NDEBUG is defined as a macro name at the
point in the source file where <assert.h> is included, the assert macro is defined
simply as
#define assert(ignore) ((void)0)
</quote>

Gevorg


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk