C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] extern noexcept
From: John McFarlane (john_at_[hidden])
Date: 2019-09-25 05:08:26


On Mon, 23 Sep 2019 at 23:06, Walt Karas via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> 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_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>



STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups