From ea74e34446e58083b92847c468ce268cf7a47ab4 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 9 Jul 2002 18:38:02 +0000 Subject: [PATCH] CWPro8 bug workarounds [SVN r14377] --- include/boost/python/object_operators.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/python/object_operators.hpp b/include/boost/python/object_operators.hpp index 1ac6e426..801218e6 100644 --- a/include/boost/python/object_operators.hpp +++ b/include/boost/python/object_operators.hpp @@ -13,7 +13,7 @@ namespace boost { namespace python { namespace api { template object object_operators::operator()() const { - object const& f = *static_cast(this); + object_cref2 f = *static_cast(this); return call(f.ptr()); } @@ -22,7 +22,7 @@ template inline object_operators::operator bool_type() const { - object const& x = *static_cast(this); + object_cref2 x = *static_cast(this); return PyObject_IsTrue(x.ptr()) ? &object::ptr : 0; } @@ -30,7 +30,7 @@ template inline bool object_operators::operator!() const { - object const& x = *static_cast(this); + object_cref2 x = *static_cast(this); return !PyObject_IsTrue(x.ptr()); }