C++ Logo

std-proposals

Advanced search

Re: extern noexcept

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Tue, 24 Sep 2019 09:10:02 +0300
On 2019-09-24 01:06, Walt Karas via Std-Proposals wrote:
>
> (Side question: shouldn't the Standard require a diagnostic if a
> noexcept function calls noexcept(false) functions on some codepath?)

No, because that function (1) may not actually throw, (2) may be inside
a try block or may not be called in runtime and (3) program termination
in case of an exception may be intended.

Received on 2019-09-24 01:12:16