On Thursday, 23 February 2023 12:07:11 CET Jonathan Wakely wrote: > On Thu, 23 Feb 2023 at 08:55, Matthias Kretz via Libstdc++ > > <libstd...@gcc.gnu.org> wrote: > > Resolves -Wtautological-compare warnings about `if > > (__builtin_is_constant_evaluated())` in the implementations of these > > functions. > > The 'inline' is redundant now, because these are unconditionally > constexpr which implies inline.
In the simd implementation I always have to make a conscious choice of always_inline vs. inline. Having the inline keyword there helps documenting that choice and helps revisiting all not-always_inline functions quickly. -- ────────────────────────────────────────────────────────────────────────── Dr. Matthias Kretz https://mattkretz.github.io GSI Helmholtz Centre for Heavy Ion Research https://gsi.de stdₓ::simd ──────────────────────────────────────────────────────────────────────────