Boost logo

Boost :

Subject: Re: [boost] [assert] static_assert envy
From: Robert Kawulak (robert.kawulak_at_[hidden])
Date: 2011-01-18 08:11:02


> From: Thorsten Ottosen
> I'm fine with BOOST_ASSERT_MSG(). Since we are adding assert.hpp I would
> like to see
>
> BOOST_ASSERT_IF()
> BOOST_ASSERT_IF_MSG()
>
> as well. It is really much clearer to read and maintain than
>
> BOOST_ASSERT( !foo() || condition );

And possibly BOOST_FAIL/BOOST_FAIL_MSG, equivalent to BOOST_ASSERT(false)/BOOST_ASSERT(false, msg)? Analogous method is found in
.NET library and I happened to find it useful several times.

Regards,
Robert


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