阅读背景:

在将对象添加到std :: list时,析构函数调用了对象

来源:互联网 

I have a Foo object, and a std::list holding instances of it. My problem is that when I add a new instance to the list, it first calls the ctor but then also the dtor. And then the dtor on another instance (according to the this pointer).I have a Foo object, and a std::list holding in




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

分享到: