What is the usefulness of `enable_shared_from_this`?
It enables you to get a valid shared_ptr instance to this, when all you have is this. Without it, you would have no way of getting a shared_ptr to this, unless you already had one as a member. This example from the boost documentation for enable_shared_from_this: class Y: public enable_shared_from_this<Y> { public: shared_ptr<Y> f() { … Read more