forked from boostorg/smart_ptr
Bug fixes.
[SVN r12787]
This commit is contained in:
1 parent
1b69c14f45
commit
b1a1ab99aa
2 files changed
+4
-2
No files matched your search
@@ -135,12 +135,12 @@ public:
|
||||
|
||||
operator bool_type() const // never throws
|
||||
{
|
||||
return use_count() == 0? 0: &this_type::use_count;
|
||||
return px == 0 || use_count() == 0? 0: &this_type::use_count;
|
||||
}
|
||||
|
||||
bool operator! () const // never throws
|
||||
{
|
||||
return use_count() == 0;
|
||||
return px == 0 || use_count() == 0;
|
||||
}
|
||||
|
||||
void swap(this_type & other) // never throws
|
||||
|
||||
Reference in new issue
Block a user