forked from boostorg/smart_ptr
Minor scoped_* fix (px -> ptr) (Thanks to Bertolt Mildner)
[SVN r14619]
This commit is contained in:
1 parent
927fe73093
commit
5328674c2d
2 files changed
+4
-4
No files matched your search
@@ -75,12 +75,12 @@ public:
|
||||
|
||||
operator unspecified_bool_type() const // never throws
|
||||
{
|
||||
return px == 0? 0: &this_type::get;
|
||||
return ptr == 0? 0: &this_type::get;
|
||||
}
|
||||
|
||||
bool operator! () const // never throws
|
||||
{
|
||||
return px == 0;
|
||||
return ptr == 0;
|
||||
}
|
||||
|
||||
void swap(scoped_array & b) // never throws
|
||||
|
||||
@@ -91,12 +91,12 @@ public:
|
||||
|
||||
operator unspecified_bool_type() const // never throws
|
||||
{
|
||||
return px == 0? 0: &this_type::get;
|
||||
return ptr == 0? 0: &this_type::get;
|
||||
}
|
||||
|
||||
bool operator! () const // never throws
|
||||
{
|
||||
return px == 0;
|
||||
return ptr == 0;
|
||||
}
|
||||
|
||||
void swap(scoped_ptr & b) // never throws
|
||||
|
||||
Reference in new issue
Block a user