What is the difference between this:
bool foo(int){return 0;}
void bar()noexcept(foo){}
And
void bar()noexcept(foo(10)){}
In the first
barhas the same exception specification asfooand the latter may throw so the two are equivalent tonoexcept(false). But what about the second version:noexcept(noexcept(foo(10)))?Are the two declarations identical?