Hacker News new | past | comments | ask | show | jobs | submit login

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>.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: