diff --git a/include/boost/python/converter/return_from_python.hpp b/include/boost/python/converter/return_from_python.hpp index 58d182f0..c487aa22 100755 --- a/include/boost/python/converter/return_from_python.hpp +++ b/include/boost/python/converter/return_from_python.hpp @@ -13,6 +13,7 @@ # include # include # include +# include namespace boost { namespace python { namespace converter { @@ -141,7 +142,7 @@ namespace detail inline T return_object_manager_from_python::operator()(PyObject* obj) const { return T( - object_manager_traits::adopt(obj) + object_manager_traits::adopt(expect_non_null(obj)) ); } }