
"Roland Schwarz" <roland.schwarz@chello.at> wrote in message news:4582C9E7.9080204@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