From ee26e13beab1f3ac9277241fbf6d5e8a70e3a6c5 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 28 Feb 2002 00:05:00 +0000 Subject: [PATCH] Added missing PyObject*const& converter [SVN r12966] --- include/boost/python/from_python.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 //