Skip to content

Commit bf84024

Browse files
author
Ralf W. Grosse-Kunstleve
committed
maybe slower but certainly conforming
[SVN r14190]
1 parent 7bb39ae commit bf84024

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

include/boost/python/proxy.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ class proxy : public object_operators<proxy<Policies> >
2828
template <class T>
2929
inline proxy const& operator=(T const& rhs) const
3030
{
31-
# if __GNUC__ != 3
32-
python::object const& x(rhs);
33-
# else
34-
python::object x(rhs);
35-
# endif
36-
Policies::set(m_target, m_key, x);
31+
Policies::set(m_target, m_key, object(rhs));
3732
return *this;
3833
}
3934

0 commit comments

Comments
 (0)