[PATCH 2/2] libstdc++: Use consteval for _S_noexcept() helper functions

Jonathan Wakely jwakely@redhat.com
Thu Sep 11 12:23:41 GMT 2025


On Thu, 11 Sept 2025 at 13:18, Jonathan Wakely wrote:
>
> These _S_noexcept() functions are only used in noexcept-specifiers and
> never need to be called at runtime. They can be immediate functions,
> i.e. consteval.

I forgot to mention that this only changes the cases that are in C++20
or later code. There are similar functions elsewhere, like
allocator_traits::_S_nothrow_construct(), but those are used in C++11
so can't be consteval.



More information about the Libstdc++ mailing list