Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-12-15 11:19:05


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 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