Talk:cpp/language/noexcept spec
From cppreference.com
Example doesn't explain much 1. int()==0 thus noexcept(int())=>noexcept(false) 2. main() will crash regardless as there is an unhandled exception.
-
int()appears inside the noexcept operator (not the noexcept specifier) which evaluates to true for the expressionint(). You're correct that an unhandled exception will escape from main, but I'm not sure why that's a problem for this example. Feel free to add or propose an explanation that you think would work better. :) --Nate 14:37, 22 February 2013 (PST)