Sorry, I should have checked!
It should be:
assert( 2 + 2 == 4 && "Adding numbers failed!" )
Maarten
----- Original Message ----
From: David Abrahams
I use the trick
assert( 2 + 2 == 4 || "Adding numbers failed!" )
This will probably work for BOOST_ASSERT as well.
Are you sure about that || ? Looks to me like it would never fire. -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com