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

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.


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

Search: