有关C++析构函数的异常(Exceptions in Destructors)(2010-6-1) C++模板学习之函数对象之谓词(2010-6-1)
基于36个网页-相关网页
析构函数的异常
An exception to the destructor
以上为机器翻译结果,长、整句建议使用 人工翻译 。
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
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
这是可能的析构函数抛出一个异常。
It is possible for the destructor to throw an exception.
应用推荐
模块上移
模块下移
不移动