I wonder whether (and how) it's possible to catch an exception thrown in a member destructor. Example:
#include <exception>
class A
{
public:
~A() {
throw std::exception("I give up!");
}
};
class B
{
A _a;
public:
~B() {
// How to catch exceptions from member destructors?
}
};