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

> what.. noexcept throws exception..? what kind of infinite wisdom led to this

Not wisdom at all, just a very basic and predictable failsafe.

If a function that is declared to not throw any exception happens to throw one, the runtime handles that scenario as an eggregious violation of its contract. Consequently, as it does with any malformed code, it terminates the application.



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

Search: