摘要: 问题场景 有些不应该被复制的对象, 被复制了, 复制前后的对象都持有同一指针成员, 析构时重复释放造成内存异常,程序coredump 示例代码 #include <iostream> #include <string> using namespace std; class Person { publ 阅读全文
posted @ 2022-07-10 22:38 飞天赤狐 阅读(95) 评论(0) 推荐(0)