Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-08-24 13:50:15


> 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

Hmm. That's an idea. I could probably do this within Boost.Test so users
wouldn't need to bother:

test_tools.hpp:

#if !defined(BOOST_TEST_NO_ASSERT_HANDLER)

namespace boost {
inline void assertion_failed(char const * expr, char const * function, char
const * file, long line)
{
    ...
}
}

#endif

This way by default I will always supply definition for the function, unless
user is willing to suply different one.

Gennadiy


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