On 03/03/21 19:34 +0200, Ville Voutilainen wrote:
On Wed, 3 Mar 2021 at 19:25, Jonathan Wakely via Libstdc++ <libstd...@gcc.gnu.org> wrote:Oh, except that is_scalar is surprisingly expensive to instantiate (its defined in a really expensive way) and since we control all usesI'll be more than happy to write you an __is_scalar for GCC 12. :P
That would help with https://gcc.gnu.org/PR96710 too. The current implementation is inefficient and arguably wrong.