Catching exceptions in destructors

后端 未结 0 1588
时光取名叫无心
时光取名叫无心 2021-02-11 22:34

Is it possible to make a destructor catch exceptions and then re-throw them?
If so, how would I do that, since there isn\'t a clear place for a try statement?

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