Returning from a noreturn function

suggest change

Example from the Standard, [dcl.attr.noreturn]:

[[ noreturn ]] void f() {
  throw "error"; // OK
}
[[ noreturn ]] void q(int i) { // behavior is undefined if called with an argument <= 0
  if (i > 0)
    throw "positive";
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents