diff --git a/include/boost/python/x_class_builder.hpp b/include/boost/python/x_class_builder.hpp index 4b3da600..7a5fd8cd 100644 --- a/include/boost/python/x_class_builder.hpp +++ b/include/boost/python/x_class_builder.hpp @@ -91,6 +91,10 @@ class python_import_extension_class_converters friend const T& from_python(PyObject* p, boost::python::type) { return from_python(p, boost::python::type()); } + // ***************************************************************** + // THIS IS OUT OF SYNC WITH class python_extension_class_converters! + // WE MIGHT NEED TO DEFINE MORE FUNCTIONS. + // ***************************************************************** friend std::auto_ptr& from_python(PyObject* p, boost::python::type&>) { return boost::python::detail::import_extension_class::get_converters()->auto_ptr_from_python(p); } @@ -166,11 +170,15 @@ struct export_ptr_converters : export_converters_base virtual T* Tptr_from_python(PyObject* obj) { return BOOST_PYTHON_CONVERSION::from_python(obj, boost::python::type()); } + // ***************************************************************** + // THIS IS OUT OF SYNC WITH class python_extension_class_converters! + // WE MIGHT NEED TO DEFINE MORE FUNCTIONS. + // ***************************************************************** virtual std::auto_ptr& auto_ptr_from_python(PyObject *obj) { - return BOOST_PYTHON_CONVERSION::python_extension_class_converters::ptr_from_python(obj, boost::python::type >()); + return BOOST_PYTHON_CONVERSION::python_extension_class_converters::smart_ptr_reference(obj, boost::python::type >()); } virtual boost::shared_ptr& shared_ptr_from_python(PyObject *obj) { - return BOOST_PYTHON_CONVERSION::python_extension_class_converters::ptr_from_python(obj, boost::python::type >()); + return BOOST_PYTHON_CONVERSION::python_extension_class_converters::smart_ptr_reference(obj, boost::python::type >()); } };