C++ Logo

std-proposals

Advanced search

Re: [std-proposals] How to propose a feature?

From: Thiago Macieira <thiago_at_[hidden]>
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.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2024-02-12 20:57:50