I have seen some C++ classes with a destructor defined as follows:
class someClass
{
public:
someClass();
~someClass() throw();
};
Is this a good idea?
I am well aware that destructors should never throw exceptions, but will this actually prevent me from throwing exceptions in my destructors? I'm not 100% sure what it guarantees.
Reference: this recent question