C++ Logo

std-proposals

Advanced search

Re: Template syntax to 'auto' parameters

From: J Decker <d3ck0r_at_[hidden]>
Date: Sun, 1 Mar 2020 20:30:20 -0800
On Sun, Mar 1, 2020 at 8:26 PM Phil Bouchard via Std-Proposals <
std-proposals_at_[hidden]> 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)
>
> {
>
> }
>
>
> when you call foo( U, T ) is that also valid?

> (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:33:16