diff --git a/include/boost/python/from_python.hpp b/include/boost/python/from_python.hpp index 62b340f1..8c3f94bb 100644 --- a/include/boost/python/from_python.hpp +++ b/include/boost/python/from_python.hpp @@ -27,6 +27,14 @@ struct from_python PyObject* operator()(PyObject* source) const { return source; } }; +template <> +struct from_python +{ + from_python(PyObject*) {} + bool convertible() const { return true; } + PyObject*const& operator()(PyObject*const& source) const { return source; } +}; + // // implementations //