1:不要把一个原生指针给多个shared_ptr管理
int* ptr = new int; shared_ptr<int> p1(ptr); shared_ptr<int> p2(ptr); //logic error ptr对象被删除了2次