2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

fixed problem reported by Neal Becker; added a test case

[SVN r39223]
This commit is contained in:
Nikolay Mladenov
2007-09-12 21:31:39 +00:00
parent 5809078ba9
commit 62ef542eaf
2 changed files with 20 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ struct object_manager_get_pytype<true>
PyObject* operator()(argument_type) const;
#ifndef BOOST_PYTHON_NO_PY_SIGNATURES
PyTypeObject const* get_pytype() const {return get_pytype((boost::type<T>*)0);}
PyTypeObject const* get_pytype() const {return get_pytype((boost::type<argument_type>*)0);}
#endif
// This information helps make_getter() decide whether to try to
// return an internal reference or not. I don't like it much,
@@ -114,6 +114,8 @@ struct object_manager_get_pytype<true>
BOOST_STATIC_CONSTANT(bool, uses_registry = false);
private:
#ifndef BOOST_PYTHON_NO_PY_SIGNATURES
template <class U>
PyTypeObject const* get_pytype(boost::type<shared_ptr<U> &> *) const {return converter::registered<U>::converters.to_python_target_type();}
template <class U>
PyTypeObject const* get_pytype(boost::type<const shared_ptr<U> &> *) const {return converter::registered<U>::converters.to_python_target_type();}
#endif