forked from boostorg/smart_ptr
Switched unspecified_bool_type to data member pointer.
[SVN r20238]
This commit is contained in:
1 parent
d6c4633e89
commit
96f572b19b
5 files changed
+10
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user