普通指针和std::shared_ptr相互转化见示例
struct test
{
int num;
string name;
};
test* ptest = new test();
std::shared_ptr ptr_test = std::shared_ptr(ptest); //普通指针转shared_ptr
std::shared_ptr ptr_test2 = std::make_shared();
test* ptest2 = ptr_test2.get(); //shared_ptr转普通指针