Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-04-11 10:26:34


Hi Gennadiy,

When I use macros such as

         BOOST_CHECK_MESSAGE( !evidence,
                              "update evidence = " <<
withEvidenceUpdate << ", evidence = " << *evidence );

it annoys me that the second argument is evaluated even when the test
should pass.

In the case above, evidence is an optional<int>. It would be cool if the
construction of the error messsage could be delayed until it was
actually needed, to make the above scenario valid.

Do you think that is possible?

Thanks

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk