throwing exceptions out of a destructor

后端 未结 16 2219
暗喜
暗喜 2020-11-22 00:23

Most people say never throw an exception out of a destructor - doing so results in undefined behavior. Stroustrup makes the point that \"the vector destructor e

16条回答
  •  情歌与酒
    2020-11-22 01:13

    Set an alarm event. Typically alarm events are better form of notifying failure while cleaning up objects

提交回复
热议问题