阅读背景:

如何将shared_ptr与受保护的析构函数和公共销毁方法一起使用?

来源:互联网 

I am a client of a class A which it's destructor is defined in protected. In addition I cannot change it's interface (I deliberately wrote "3'd party class", although I meant that for any reason, you aren't allowed to change its interface. So, How can I use boost::shared_ptr in such case? The destructor is virtual:I am a client of a class A which it's destructo




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

分享到: