Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-06-12 08:35:55


Dear all,

I often find myself in the need of the above assertion mechanism where
the actual assertion should only checked if the first condition is true.

Of course, we could write this as

if( IF )
   BOOST_ASSERT( THEN );

but this has the potential downside that the compiler cannot completely
optimize away the function calls inside the if-statement.

Any comments?

-Thorsten


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