Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

https://www.cs.technion.ac.il/users/yechiel/c++-faq/dtors-sh... but what if dtor fails(e.g. can't release a resource), is the by-default action terminate or ignore?


Well, the "environment" may decide for you in some cases, but there is no default action as such. You log an error and either terminate or ignore - depending on which causes less harm.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: