diff --git a/include/boost/python/default_call_policies.hpp b/include/boost/python/default_call_policies.hpp index 475278e4..f0b69255 100644 --- a/include/boost/python/default_call_policies.hpp +++ b/include/boost/python/default_call_policies.hpp @@ -48,8 +48,10 @@ struct default_result_converter template struct apply { + BOOST_STATIC_CONSTANT(bool, is_illegal = is_reference::value || is_pointer::value); + typedef typename mpl::select_type< - is_reference::value | is_pointer::value + is_illegal , detail::specify_a_result_policy_to_wrap_functions_returning , boost::python::to_python_value< typename add_reference::type>::type