Switched unspecified_bool_type to data member pointer.

[SVN r20238]
This commit is contained in:
Peter Dimov
2003-10-01 11:12:15 +00:00
parent d6c4633e89
commit 96f572b19b
5 changed files with 10 additions and 10 deletions

View File

@ -130,11 +130,11 @@ public:
#else #else
typedef T * (intrusive_ptr::*unspecified_bool_type) () const; typedef T * this_type::*unspecified_bool_type;
operator unspecified_bool_type () const operator unspecified_bool_type () const
{ {
return p_ == 0? 0: &intrusive_ptr::get; return p_ == 0? 0: &this_type::p_;
} }
#endif #endif

View File

@ -95,11 +95,11 @@ public:
#else #else
typedef T * (this_type::*unspecified_bool_type)() const; typedef T * this_type::*unspecified_bool_type;
operator unspecified_bool_type() const // never throws operator unspecified_bool_type() const // never throws
{ {
return ptr == 0? 0: &this_type::get; return ptr == 0? 0: &this_type::ptr;
} }
#endif #endif

View File

@ -112,11 +112,11 @@ public:
#else #else
typedef T * (this_type::*unspecified_bool_type)() const; typedef T * this_type::*unspecified_bool_type;
operator unspecified_bool_type() const // never throws operator unspecified_bool_type() const // never throws
{ {
return ptr == 0? 0: &this_type::get; return ptr == 0? 0: &this_type::ptr;
} }
#endif #endif

View File

@ -104,11 +104,11 @@ public:
#else #else
typedef T * (this_type::*unspecified_bool_type)() const; typedef T * this_type::*unspecified_bool_type;
operator unspecified_bool_type() const // never throws operator unspecified_bool_type() const // never throws
{ {
return px == 0? 0: &this_type::get; return px == 0? 0: &this_type::px;
} }
#endif #endif

View File

@ -271,11 +271,11 @@ public:
#else #else
typedef T * (this_type::*unspecified_bool_type)() const; typedef T * this_type::*unspecified_bool_type;
operator unspecified_bool_type() const // never throws operator unspecified_bool_type() const // never throws
{ {
return px == 0? 0: &this_type::get; return px == 0? 0: &this_type::px;
} }
#endif #endif