I have this code that doesn\'t work, but I think the intent is clear:
testmakeshared.cpp
#include class A { public: stat
How about this?
static std::shared_ptr create() { std::shared_ptr pA(new A()); return pA; }