deallocating from a virtual destructor, over deallocate the memory

后端 未结 0 681
天涯浪人
天涯浪人 2020-12-11 12:55
class Interface
{
   virtual ~Interface() = 0;
   virtual void doSomething() = 0;
   ~Interface()
   {
      //deleting allocat         


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