|
Boost Users : |
From: Maarten Nieber (hallomaarten_at_[hidden])
Date: 2006-12-16 09:43:33
Sorry, I should have checked!
It should be:
assert( 2 + 2 == 4 && "Adding numbers failed!" )
Maarten
----- Original Message ----
From: David Abrahams <dave_at_[hidden]>
To: boost-users_at_[hidden]
Sent: Friday, December 15, 2006 5:19:05 PM
Subject: Re: [Boost-users] BOOST_ASSERT and others
Maarten Nieber <hallomaarten_at_[hidden]> 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_at_[hidden]
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net