Skip to content

Commit bd8b6a2

Browse files
committed
Workaround a CWPro7.2 bug
[SVN r14720]
1 parent 88528e3 commit bd8b6a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/python/handle.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace detail
6161
template <class T>
6262
class handle
6363
{
64-
typedef T* (handle::*bool_type);
64+
typedef T* (handle::* bool_type )() const;
6565

6666
public: // types
6767
typedef T element_type;
@@ -112,7 +112,7 @@ class handle
112112

113113
operator bool_type() const // never throws
114114
{
115-
return m_p ? &handle<T>::m_p : 0;
115+
return m_p ? &handle<T>::get : 0;
116116
}
117117
bool operator! () const; // never throws
118118

0 commit comments

Comments
 (0)