在介绍 unique_ptr时,我们只需要将拷贝构造函数和赋值拷贝构造函数申明为private或delete。我想请教一下为什么声明成private就可以了呢,声明成protected可以吗??
点赞

相关推荐

牛客网
牛客企业服务