Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fjjdrnrbbrb
12 days ago
|
parent
|
context
|
favorite
| on:
C++ says “We have try... finally at home”
Throwing exceptions in destructors in C++ is fine, as long as your code is exception safe.
What exactly are you referring to?
meindnoch
10 days 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.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What exactly are you referring to?