Skip to content

Commit ea74e34

Browse files
committed
CWPro8 bug workarounds
[SVN r14377]
1 parent c7225a0 commit ea74e34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/boost/python/object_operators.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace boost { namespace python { namespace api {
1313
template <class U>
1414
object object_operators<U>::operator()() const
1515
{
16-
object const& f = *static_cast<U const*>(this);
16+
object_cref2 f = *static_cast<U const*>(this);
1717
return call<object>(f.ptr());
1818
}
1919

@@ -22,15 +22,15 @@ template <class U>
2222
inline
2323
object_operators<U>::operator bool_type() const
2424
{
25-
object const& x = *static_cast<U const*>(this);
25+
object_cref2 x = *static_cast<U const*>(this);
2626
return PyObject_IsTrue(x.ptr()) ? &object::ptr : 0;
2727
}
2828

2929
template <class U>
3030
inline bool
3131
object_operators<U>::operator!() const
3232
{
33-
object const& x = *static_cast<U const*>(this);
33+
object_cref2 x = *static_cast<U const*>(this);
3434
return !PyObject_IsTrue(x.ptr());
3535
}
3636

0 commit comments

Comments
 (0)