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;