explicit call to destructor is not destroying my object why?

前端 未结 7 514
我寻月下人不归
我寻月下人不归 2020-12-03 08:56

I\'m calling the destructor to deallocate memory but it is not deleting my object. What is the reason behind it?

my code is like this:

class A
{
publ         


        
7条回答
  •  攒了一身酷
    2020-12-03 09:37

    Your object has been destroyed but its memory space is still around until it goes out of scope.

提交回复
热议问题