
Sorry, I should have checked! It should be: assert( 2 + 2 == 4 && "Adding numbers failed!" ) Maarten ----- Original Message ---- From: David Abrahams <dave@boost-consulting.com> To: boost-users@lists.boost.org Sent: Friday, December 15, 2006 5:19:05 PM Subject: Re: [Boost-users] BOOST_ASSERT and others Maarten Nieber <hallomaarten@yahoo.com> writes:
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