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

Added missing PyObject*const& converter

[SVN r12966]
This commit is contained in:
Dave Abrahams
2002-02-28 00:05:00 +00:00
parent 493ff9c685
commit ee26e13bea

View File

@@ -27,6 +27,14 @@ struct from_python<PyObject*>
PyObject* operator()(PyObject* source) const { return source; }
};
template <>
struct from_python<PyObject* const&>
{
from_python(PyObject*) {}
bool convertible() const { return true; }
PyObject*const& operator()(PyObject*const& source) const { return source; }
};
//
// implementations
//