News for hackers. Stuff that matters.
Re:When noexcept? by Rexxar on Thursday December 15, 2016 @09:37AM (#13184787)
The "nothrow" is not part of the function signature, probably in order not to break retro-compatibility. Without this, "nothrow" cannot be enforced reliably at compile time. And I think they don't want to add a new sort of undefined behaviour if a function from a linked module doesn't respect the nothrow promise at runtime.
Re:When noexcept? by maxlybbert on Thursday December 15, 2016 @05:42PM (#13189330)
You are right, even nothrow doesn't fix the weirdness with signatures. However, nothrow allows a program to change behavior based on whether a function it will call will throw exceptions. That wasn't available under the old exception specification mechanism.