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

Just mark all destructors noexcept?


Noexcept doesn't prevent your dtor from throwing, it just means that if it does throw, it will call std::terminate rather than unwind (thus, callers can assume it doesn't throw, since it will abort instead.) For the problem mentioned in the article, this is not a solution.


Destructors already are noexcept by default




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

Search: