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:
1 parent
6f2bdddfa0
commit
d34d638998
5 files changed
+254
-72
No files matched your search
@@ -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