mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-29 20:37:13 +02:00
Switched unspecified_bool_type to data member pointer.
[SVN r20238]
This commit is contained in:
@ -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