struct A
{
int a;
}
int f(A a...){ return a.a; }
static assert(f(4)==4); //not callable
Typesafe variadic functions are supported with classes, but not with structs. Is there a reason for this limitation?
Comment #1 by robert.schadek — 2024-12-13T19:15:15Z