Class and member destructors called twice

后端 未结 0 1081
有刺的猬
有刺的猬 2020-11-29 17:08
class A
{
public:
    ~A()
    {
        std::cout << "A destroyed" << std::endl;
    }
};

class B
{
public:
    A a;
    ~B()
    {
        s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题