Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2003-03-09 21:15:02


"Jaap Suter" <J.Suter_at_[hidden]> wrote in message
news:b4grdb$et6$1_at_main.gmane.org...
> [...]
> The proposal doesn't say anything about a compile time release and
> debug mode. I guess one could always define the 'static_assert'
> keyword to be nothing, but perhaps compiler support for disabling
> and enabling static assertions is more useful.
> [...]

I think that #define-ing keywords results in undefined behaviour. It
would be better to call static_assert through a macro if you want to
turn it on and off.

Dave


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