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:45:54 +0100
> This is not an abbreviated variadic template; it's an abbreviated non-variadic template with an ellipsis parameter.

No, it is not.

> void foo(auto...);
> int main() {
> foo<int, int, int, int>(1, 2, 3, 4);
> }

This code compiles. See https://godbolt.org/z/hWaqh3xn5

Received on 2024-03-01 17:46:05