From bd8b6a2a64bf7e6f71e6b2d27f67d6681ce41aa3 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 6 Aug 2002 23:23:28 +0000 Subject: [PATCH] Workaround a CWPro7.2 bug [SVN r14720] --- include/boost/python/handle.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/handle.hpp b/include/boost/python/handle.hpp index 8ebb1ae2..7fea1134 100755 --- a/include/boost/python/handle.hpp +++ b/include/boost/python/handle.hpp @@ -61,7 +61,7 @@ namespace detail template class handle { - typedef T* (handle::*bool_type); + typedef T* (handle::* bool_type )() const; public: // types typedef T element_type; @@ -112,7 +112,7 @@ class handle operator bool_type() const // never throws { - return m_p ? &handle::m_p : 0; + return m_p ? &handle::get : 0; } bool operator! () const; // never throws