摘要: struct X { int a; }; shared_ptr<X> px(new X); shared_ptr<int> pi(px, &px->a); shared_ptr<X> sp1(new X); shared_ptr<X> sp2(sp1, new X); // ERROR: delet 阅读全文
posted @ 2020-05-31 13:50 P.wang 阅读(169) 评论(0) 推荐(0) 编辑