Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fjjdrnrbbrb
· 11mo ago · 0 comments
Throwing exceptions in destructors in C++ is fine, as long as your code is exception safe.
What exactly are you referring to?
Comments
[–]
meindnoch
11mo ago
Throwing 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.