Boost logo

Boost :

From: John Torjo (john_at_[hidden])
Date: 2003-05-10 14:47:25


> Gennaro Prota wrote:
>
> > Just that Borland won't warn on BOOST_INVARIANT(false). Admittedly
> > not a big one :-)
>
> This warning can be configured away simply by purposely accessing a
non-constant
> variable or calling an inline function:
>
> inline bool force_non_constant() { return true; }
>
> if (force_non_constant(), expr) else ...
>

Cool! Thanks, will do.

Best,
John


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