diff --git a/include/boost/python/proxy.hpp b/include/boost/python/proxy.hpp index d17f5871..8491f722 100755 --- a/include/boost/python/proxy.hpp +++ b/include/boost/python/proxy.hpp @@ -28,7 +28,11 @@ class proxy : public object_operators > template inline proxy const& operator=(T const& rhs) const { +# if __GNUC__ != 3 python::object const& x(rhs); +# else + python::object x(rhs); +# endif Policies::set(m_target, m_key, x); return *this; }