diff --git a/include/boost/python/make_constructor.hpp b/include/boost/python/make_constructor.hpp index 598bf4f6..654a4f31 100755 --- a/include/boost/python/make_constructor.hpp +++ b/include/boost/python/make_constructor.hpp @@ -23,6 +23,7 @@ # include # include # include +# include namespace boost { namespace python { @@ -103,12 +104,14 @@ namespace detail // If the BasePolicy_ supplied a result converter it would be // ignored; issue an error if it's not the default. - BOOST_STATIC_ASSERT(( - is_same< + BOOST_MPL_ASSERT_MSG( + (is_same< typename BasePolicy_::result_converter , default_result_converter - >::value - )); + >::value) + , MAKE_CONSTRUCTOR_SUPPLIES_ITS_OWN_RESULT_CONVERTER_THAT_WOULD_OVERRIDE_YOURS + , (typename BasePolicy_::result_converter) + ); typedef constructor_result_converter result_converter; typedef offset_args > argument_package;