Date: Mon, 12 Feb 2024 12:57:47 -0800
On Monday, 12 February 2024 12:14:26 PST Baruch Burstein via Std-Proposals
wrote:
> template <class T>
> int foo() { ... }
>
> using foo_int = foo<int>;
Start with why
static const auto foo_int = foo<int>;
won't work. https://gcc.godbolt.org/z/9s8xha1fK
The paper that Lénárd posted has a motivation for that. Yours seems to be just
some syntactic difference for something we can already do.
wrote:
> template <class T>
> int foo() { ... }
>
> using foo_int = foo<int>;
Start with why
static const auto foo_int = foo<int>;
won't work. https://gcc.godbolt.org/z/9s8xha1fK
The paper that Lénárd posted has a motivation for that. Yours seems to be just
some syntactic difference for something we can already do.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering
Received on 2024-02-12 20:57:50