C++ Logo

std-proposals

Advanced search

Re: [std-proposals] The Oxford variadic comma

From: Jan Schultke <janschultke_at_[hidden]>
Date: Fri, 1 Mar 2024 18:34:36 +0100
> Uh, why not? Is there a particular reason why it's important to allow omitting the comma specifically here?

Because this is an abbreviated variadic function template.

If f(auto... x) is a variadic function template, removing x should
result in a function template with the same type. This is the case in
the current draft, it's totally fine, I'm happy with it, and I'm not
deprecating it.

Received on 2024-03-01 17:34:48