That is:
extern noexcept
{
// stuff
}
All
functions (including member functions) declared within the braces
default to noexcept unless explicitly overridden with noexecpt(<false
value expr>).
IIRC, SG14 explored similar option a few years ago while brainstorming ways to solve the exception schism. If you look at discussion from 2015/2016 you may find something. Patrice Roi spoke on the topic at CppCon 2016.
(Side
question: shouldn't the Standard require a diagnostic if a noexcept
function calls noexcept(false) functions on some codepath?)
--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals