Why does std::shared_ptr call my destructor twice?

后端 未结 0 985
无人及你
无人及你 2020-12-16 06:01

In this program, why is the destructor on line 14 is called twice for the same instance of mystruct_t?

I\'m assuming that all pointer manipulation in this program is

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