From 03be656c75965b25d33f528e2c05fbc45fb6a375 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Sat, 18 Sep 2004 06:33:05 +0000 Subject: [PATCH] fix MWCW function-scope assertions [SVN r25185] --- include/boost/mpl/assert.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/boost/mpl/assert.hpp b/include/boost/mpl/assert.hpp index 8200793..68540e2 100644 --- a/include/boost/mpl/assert.hpp +++ b/include/boost/mpl/assert.hpp @@ -61,17 +61,16 @@ template<> struct assert { typedef AUX778076_ASSERT_ARG(assert) template< bool C > int assertion_failed( typename assert::type ); -template +template< bool C > struct assertion { - static int failed(assert); + static int failed( assert ); }; -template <> +template<> struct assertion { - template - static int failed(T); + static int failed( void* ); }; struct assert_ @@ -303,7 +302,6 @@ enum { \ typedef struct BOOST_PP_CAT(msg,__LINE__) : boost::mpl::assert_ \ { \ using boost::mpl::assert_::types; \ - enum { msg }; \ static boost::mpl::failed ************ (msg::************ assert_arg()) types_ \ { return 0; } \ } BOOST_PP_CAT(mpl_assert_arg,__LINE__); \