forked from boostorg/smart_ptr
Bring back the constructor-enabled enable_shared_from_this as enable_shared_from_this2.
[SVN r51912]
This commit is contained in:
@@ -124,6 +124,11 @@ public:
|
||||
return pn.use_count() == 0;
|
||||
}
|
||||
|
||||
bool _empty() const // extension, not in std::weak_ptr
|
||||
{
|
||||
return pn.empty();
|
||||
}
|
||||
|
||||
void reset() // never throws in 1.30+
|
||||
{
|
||||
this_type().swap(*this);
|
||||
|
||||
Reference in New Issue
Block a user