2023年2月21日

C++ 用同一个raw pointer传入shared_ptr构造函数生成两个智能指针有什么问题?

摘要: Effective Modern C++ Item 19: use std::shared_ptr for shared-ownership resource Now, the constructor for spw1 is called with a raw pointer, so it crea 阅读全文

posted @ 2023-02-21 16:47 七昂的技术之旅 阅读(43) 评论(0) 推荐(0) 编辑

导航