阅读背景:

为什么不能从unique_ptr构造weak_ptr?

来源:互联网 

If I understand correctly, a weak_ptr doesn't increment the reference count of the managed object, therefore it doesn't represent ownership. It simply lets you access an object, the lifetime of which is managed by someone else. So I don't really see why a doesn't i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: