diff --git a/include/boost/python/return_internal_reference.hpp b/include/boost/python/return_internal_reference.hpp index a1888229..8f60c476 100644 --- a/include/boost/python/return_internal_reference.hpp +++ b/include/boost/python/return_internal_reference.hpp @@ -30,9 +30,9 @@ struct internal_reference_to_python_generator struct apply { typedef typename mpl::select_type< - !is_object::value - , to_python_indirect + is_object::value , detail::return_internal_reference_requires_a_pointer_or_reference_return_type + , to_python_indirect >::type type; }; };