Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-12-15 12:00:11


"Roland Schwarz" <roland.schwarz_at_[hidden]> wrote in message
news:4582C9E7.9080204_at_chello.at...
> Gennadiy Rozental wrote:
>> We could do this #if !defined(NDEBUG) &&
>> BOOST_WORKAROUND(BOOST_MSVC,<=1200)
>
> I put into "test_tools.hpp" :
>
> #if defined(NDEBUG) && BOOST_WORKAROUND(BOOST_MSVC, <=1200)
> #define BOOST_WARN_EQUAL( L, R ) BOOST_WARN( (L) == (R) )
> #define BOOST_CHECK_EQUAL( L, R ) BOOST_CHECK( (L) == (R) )
> #define BOOST_REQUIRE_EQUAL( L, R ) BOOST_REQUIRE( (L) == (R) )
> #else
> #define BOOST_WARN_EQUAL( L, R ) \
> BOOST_CHECK_WITH_ARGS_IMPL(
> ::boost::test_tools::tt_detail::equal_impl_frwd(), "", WARN,
> CHECK_EQUAL, (L)(R) )
> #define BOOST_CHECK_EQUAL( L, R ) \
> BOOST_CHECK_WITH_ARGS_IMPL(
> ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK,
> CHECK_EQUAL, (L)(R) )
> #define BOOST_REQUIRE_EQUAL( L, R ) \
> BOOST_CHECK_WITH_ARGS_IMPL(
> ::boost::test_tools::tt_detail::equal_impl_frwd(), "", REQUIRE,
> CHECK_EQUAL, (L)(R) )
> #endif

Heh, I don't really like putting this kinda cludge into Boost.Test code. But
if no one sees any alternatives go ahead

> (Sorry the wrong line breaks are from my mailer)
>
> Which I tested for libs/thread/test
> with
> msvc-6.5 release/debug
> msvc-7.1 release/debug
>
> If you have no objections, I can check this in if you like.
>
> Btw.: Do you have anything to say about my asynch-exeptions question?

Umm, I must've missed it. What was it?

Gennadiy


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