2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Workaround a CWPro7.2 bug

[SVN r14720]
This commit is contained in:
Dave Abrahams
2002-08-06 23:23:28 +00:00
parent 88528e338b
commit bd8b6a2a64

View File

@@ -61,7 +61,7 @@ namespace detail
template <class T>
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<T>::m_p : 0;
return m_p ? &handle<T>::get : 0;
}
bool operator! () const; // never throws