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