From bf84024d6bdca411ee234706a0f9bddc019576f9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 20 Jun 2002 00:19:59 +0000 Subject: [PATCH] maybe slower but certainly conforming [SVN r14190] --- include/boost/python/proxy.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/boost/python/proxy.hpp b/include/boost/python/proxy.hpp index 8491f722..b74d155c 100755 --- a/include/boost/python/proxy.hpp +++ b/include/boost/python/proxy.hpp @@ -28,12 +28,7 @@ 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); + Policies::set(m_target, m_key, object(rhs)); return *this; }