From c73ad50286f92306f501b3f2d83bd8305b5e5444 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 16 Dec 2006 22:00:35 +0000 Subject: [PATCH] Roll back improved error message because it causes problems for vc6/7 [SVN r36435] --- include/boost/python/make_constructor.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/boost/python/make_constructor.hpp b/include/boost/python/make_constructor.hpp index 18a93ce2..598bf4f6 100755 --- a/include/boost/python/make_constructor.hpp +++ b/include/boost/python/make_constructor.hpp @@ -103,14 +103,12 @@ namespace detail // If the BasePolicy_ supplied a result converter it would be // ignored; issue an error if it's not the default. - BOOST_MPL_ASSERT_MSG( - (is_same< + BOOST_STATIC_ASSERT(( + is_same< typename BasePolicy_::result_converter , default_result_converter - >::value) - , MAKE_CONSTRUCTOR_SUPPLIES_ITS_OWN_RESULT_CONVERTER_THAT_WOULD_OVERRIDE_YOURS - , (typename BasePolicy_::result_converter) - ); + >::value + )); typedef constructor_result_converter result_converter; typedef offset_args > argument_package;