Boost logo

Boost :

Subject: Re: [boost] suggestion on assertion macros
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-03-15 14:37:10


On Mon, Mar 15, 2010 at 10:28 AM, Roland Bock <rbock_at_[hidden]> wrote:
>  #define assert(cond) static_cast<void>(sizeof(cond? 0: 0));

Presumably, (void)sizeof(cond?0:0) gives you a warning for using
C-style cast? :)

How about disabling a few lame warnings and leaving assert() alone?

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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