Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-10-29 12:35:03


AMDG

Roland Schwarz <roland.schwarz <at> chello.at> writes:

> This wouldn't account for:
>
> unsigned int res = SomeFuncWithSideEffects();
>
> BOOST_ASSERT(res != EDOM);
>
> or the like...
>
> Roland aka speedsnail
>

template<class T>
void use_variable(const T&) {}

#if ENABLE_ASSERT
    #define BOOST_ASSERT(x) normal implementation
#else
    #define BOOST_ASSERT(x) use_variable(x)
#endif

In Christ,
Steven Watanabe


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