C++ Logo

std-proposals

Advanced search

Re: Template syntax to 'auto' parameters

From: connor horman <chorman64_at_[hidden]>
Date: Sun, 1 Mar 2020 23:43:12 -0500
Don’t we already have concepts?

On Sun, Mar 1, 2020 at 23:42 Phil Bouchard via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On 3/1/20 11:35 PM, language.lawyer_at_[hidden] wrote:
>
> Are you proposing to add
> http://eel.is/c++draft/dcl.decl#def:template,function,abbreviated ?
>
>
> Similarly but I'm not sure why we would need the concept of "concepts"...
> A simple 'auto' keyword should suffice.
>
>
> On 02/03/2020 07:26, Phil Bouchard via Std-Proposals wrote:
>
> Supposed we have the following syntax:
>
> template <typename T, typename U>
>
> void foo(T t, U u)
>
> {
>
> }
>
>
> It could be simplified with:
>
> void foo(auto t, auto u)
>
> {
>
> }
>
>
> (Please include my email in your replies)
>
>
> Regards,
>
>
> --
>
> *Phil Bouchard*
> Founder
> C.: (819) 328-4743
>
> [image: Fornux Logo] <http://www.fornux.com>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2020-03-01 22:46:07