换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
管理构造函数和析构函数中的异常
这是可能的析构函数抛出一个异常。
应该忽略析构函数中的异常吗?
与析构函数不同,构造函数内部所做的事情经常会抛出异常。
Unlike destructors, it is often the case that something done inside a constructor might throw an exception.
在使用具有析构函数的对象的函数中,不应使用结构化异常处理。
You should not use structured exception handling in functions that use objects with destructors.
在使用具有析构函数的对象的函数中,不应使用结构化异常处理。
You should not use structured exception handling in functions that use objects with destructors.
应用推荐