Y
Hacker News
new
|
ask
|
show
|
jobs
by
dasyatidprime
776 days ago
FWIW, in C++11, a class C can similarly cooperate to enable reconstructing a shared_ptr from a raw one by deriving from std::enable_shared_from_this<C>.