析构函数和异常
Destructors and exceptions
以上为机器翻译结果,长、整句建议使用 人工翻译 。
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
youdao
管理构造函数和析构函数中的异常
Managing exceptions in constructors and destructors
应用推荐
模块上移
模块下移
不移动