@@ -17,7 +17,7 @@ namespace detail
1717
1818 namespace
1919 {
20- inline PyObject* convert (void const volatile * source, to_python_function_t converter)
20+ inline PyObject* convert_to_python (void const volatile * source, to_python_function_t converter)
2121 {
2222 if (converter == 0 )
2323 {
@@ -36,14 +36,14 @@ namespace detail
3636 arg_to_python_base::arg_to_python_base (
3737 void const volatile * source, to_python_function_t converter)
3838# if !defined(BOOST_MSVC) || _MSC_FULL_VER != 13102140
39- : handle<>(convert (source, converter))
39+ : handle<>(convert_to_python (source, converter))
4040# else
41- : m_ptr(convert (source, converter))
41+ : m_ptr(convert_to_python (source, converter))
4242# endif
4343 {
4444 }
4545
46- BOOST_PYTHON_DECL void throw_if_not_registered (rvalue_stage1_data const & data)
46+ BOOST_PYTHON_DECL void throw_if_not_registered (rvalue_from_python_stage1_data const & data)
4747 {
4848 if (!data.convertible )
4949 {
@@ -108,7 +108,7 @@ namespace detail
108108 throw_error_already_set ();
109109 }
110110
111- BOOST_PYTHON_DECL void * convert_rvalue (PyObject* src, rvalue_stage1_data & data, void * storage)
111+ BOOST_PYTHON_DECL void * convert_rvalue (PyObject* src, rvalue_from_python_stage1_data & data, void * storage)
112112 {
113113 handle<> holder (src);
114114
@@ -126,6 +126,11 @@ namespace detail
126126
127127 return data.convertible ;
128128 }
129+
130+ BOOST_PYTHON_DECL void absorb_result (PyObject* o)
131+ {
132+ Py_DECREF (expect_non_null (o));
133+ }
129134}
130135
131136}}} // namespace boost::python::converter
0 commit comments