We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88528e3 commit bd8b6a2Copy full SHA for bd8b6a2
1 file changed
include/boost/python/handle.hpp
@@ -61,7 +61,7 @@ namespace detail
61
template <class T>
62
class handle
63
{
64
- typedef T* (handle::*bool_type);
+ typedef T* (handle::* bool_type )() const;
65
66
public: // types
67
typedef T element_type;
@@ -112,7 +112,7 @@ class handle
112
113
operator bool_type() const // never throws
114
115
- return m_p ? &handle<T>::m_p : 0;
+ return m_p ? &handle<T>::get : 0;
116
}
117
bool operator! () const; // never throws
118
0 commit comments