问题 I have a resource manager that, like Andrei Alexandrescu proposed in the book Modern C++ Design, follows a policy based design. I am having trouble though, because my resource manager needs to be able to provide references to itself to the managed resources by shared_from_this() . I built a minimal example reproducing my problem, which results you can see here. Basically I have some managed resource that needs a reference to its manager: template <typename T> class managed_resource { typedef