2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-30 20:12:37 +00:00

Suppress warnings for old EDGs

[SVN r15415]
This commit is contained in:
Dave Abrahams
2002-09-17 17:37:59 +00:00
parent 0f559f3f97
commit bff10e5711

View File

@@ -79,7 +79,13 @@ inline T object_manager_value_arg_from_python<T>::operator()(PyObject* x) const
template <class Ref>
inline object_manager_ref_arg_from_python<Ref>::object_manager_ref_arg_from_python(PyObject* x)
{
python::detail::construct_referent<Ref>(&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<Ref>(&m_result.bytes, x_);
# else
python::detail::construct_referent<Ref>(&m_result.bytes, (python::detail::borrowed_reference)x);
# endif
}
template <class Ref>