3 ms·
Throwing exceptions in destructors in C++ is fine, as long as your code is exception safe. What exactly are you referring to?
by fjjdrnrbbrb 10mo ago
Throwing exceptions in destructors in C++ is fine, as long as your code is exception safe.
What exactly are you referring to?
- meindnoch 10mo agoThrowing exceptions from destructors is "fine", except when the destructor is executed by stack unwinding (triggered by an earlier exception), in which case throwing will terminate the program with std::terminate.