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

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