3 ms·
Throwing during destructors will generally result in a std::terminate, since you have good odds of throwing during destruction of an object that is being cleane
by daemin 7y ago
Throwing during destructors will generally result in a std::terminate, since you have good odds of throwing during destruction of an object that is being cleaned up as a result of an existing in progress exception.
So it is not forbidden but odds are you'll have your program terminate.