你写的格式对吗?应该是shared_ptr<T> ps1(new T(v));或者std::shared_ptr<T> ps1 = std::make_shared<T>(v);?
点赞 1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务