From e5093a77b365c9d285a0af2457459dddbec39136 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Wed, 15 Sep 2004 15:29:45 +0000 Subject: [PATCH] MSVC < 7.1 workaround [SVN r25119] --- include/boost/mpl/assert.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/boost/mpl/assert.hpp b/include/boost/mpl/assert.hpp index 41ae091..8200793 100644 --- a/include/boost/mpl/assert.hpp +++ b/include/boost/mpl/assert.hpp @@ -210,7 +210,18 @@ enum { \ // BOOST_MPL_ASSERT_NOT((pred)) -#define BOOST_MPL_ASSERT_NOT(pred) \ +#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) +# define BOOST_MPL_ASSERT_NOT(pred) \ +enum { \ + BOOST_PP_CAT(mpl_assertion_in_line_,__LINE__) = sizeof( \ + boost::mpl::assertion::failed( \ + boost::mpl::assert_not_arg( (void (*) pred)0, 1 ) \ + ) \ + ) \ +}\ +/**/ +#else +# define BOOST_MPL_ASSERT_NOT(pred) \ enum { \ BOOST_PP_CAT(mpl_assertion_in_line_,__LINE__) = sizeof( \ boost::mpl::assertion_failed( \ @@ -219,6 +230,7 @@ enum { \ ) \ }\ /**/ +#endif // BOOST_MPL_ASSERT_RELATION(x, ==|!=|<=|<|>=|>, y)