Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2005-08-24 12:52:58


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Gennadiy Rozental
> Sent: Wednesday, August 24, 2005 9:51 AM
> To: boost-users_at_[hidden]
> Subject: [BULK] Re: [Boost-users] [Test] Asserting a failure
> Importance: Low
>
>
> > cannot find one. All I see are macros that assert
> successes, and those
> > that
> > assert exceptions. But my particular function does not
> throw, it simply
> > "assert()"s.
>
> I do not know reliable/portable way to intercept an assert
> invocation. So
> you are on your own here. If you know any hooks to do the
> job, I am open to
> suggestions.

Try replacing your asserts with BOOST_ASSERT which can be a passive
assert depending on how you use it.

http://www.boost.org/libs/utility/assert.html


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