热门标签
更多>
搜索结果
查询Tags标签: leaving,共有 2条记录-
Effective C++ 笔记 —— Item 8: Prevent exceptions from leaving destructors.
Destructors should never emit exceptions. If functions called in a destructor may throw, the destructor should catch any exceptions, then swallow them or terminate the program. 1. Terminate the program if close throws, typically by calling abort:DBCon…
2021/8/28 17:06:51 人评论 次浏览 -
Effective C++ 笔记 —— Item 8: Prevent exceptions from leaving destructors.
Destructors should never emit exceptions. If functions called in a destructor may throw, the destructor should catch any exceptions, then swallow them or terminate the program. 1. Terminate the program if close throws, typically by calling abort:DBCon…
2021/8/28 17:06:51 人评论 次浏览