From bff10e571174b1dbf2bb946224721038d2608517 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 17 Sep 2002 17:37:59 +0000 Subject: [PATCH] Suppress warnings for old EDGs [SVN r15415] --- .../boost/python/converter/obj_mgr_arg_from_python.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/boost/python/converter/obj_mgr_arg_from_python.hpp b/include/boost/python/converter/obj_mgr_arg_from_python.hpp index 75b0ae43..0ad709c0 100644 --- a/include/boost/python/converter/obj_mgr_arg_from_python.hpp +++ b/include/boost/python/converter/obj_mgr_arg_from_python.hpp @@ -79,7 +79,13 @@ inline T object_manager_value_arg_from_python::operator()(PyObject* x) const template inline object_manager_ref_arg_from_python::object_manager_ref_arg_from_python(PyObject* x) { - python::detail::construct_referent(&m_result.bytes, python::detail::borrowed_reference(x)); +# if defined(__EDG_VERSION__) && __EDG_VERSION__ <= 241 + // needed for warning suppression + python::detail::borrowed_reference x_ = python::detail::borrowed_reference(x); + python::detail::construct_referent(&m_result.bytes, x_); +# else + python::detail::construct_referent(&m_result.bytes, (python::detail::borrowed_reference)x); +# endif } template