On Mon, Apr 27, 2026 at 09:59:45AM +0100, Jonathan Wakely wrote:
> is_scalar is one of the more expensive traits and it would be good to
> have a builtin for it some day.
Guess that is doable, but the question is if you are ok with losing
control on the library side what exactly is integral/arithmetic type and
what is not (e.g. whether __int128 is or is not integral, arithmetic etc.
type).
What other traits you'd like to change to using builtin versions (and is
__builtin_is_WHATEVER ok for that)?
is_integral/is_arithmetic/is_scalar/is_fundamental? Something else?
Jakub