
18 Jan
2011
18 Jan
'11
1:11 p.m.
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