#issue pure virtual method called 虚函数调用段错误
2021-08-23
阅读 1 分钟
4.6k1.问题描述:在做一个分布式存储的服务器。服务器在某些异常关闭的场景下,会在析构时,报错:pure virtual method called, terminate called without an active exception。服务器析构时,会调用下面这行代码:tx->Commit(); // std::shared_ptr<SeGhBacken> tx;其声明为:基类: