Boost logo

Boost Users :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-01-21 10:21:41


Kowalke Oliver (QD IT PA AS) wrote:
> Hi,
> does boost provide a macro like BOOST_ASSERT which allows to print out a message if the assertion is raised?
> best regards, Oliver

How about:

BOOST_ASSERT(condition && "error!");

BOOST_ASSERT(!"impossible!");

Regards,

-- 
Shunsuke Sogame

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