Compiler Error C3268

'function' : a generic function or a member-function of a generic class cannot have a variable parameter list

See Generics (Visual C+) for more information.

Example

The following sample generates C3268.

// C3268.cpp
// compile with: /clr:pure /c
generic <class ItemType>
void Test(ItemType item, ...) {}   // C3268
// try the following line instead
// void Test(ItemType item) {}

generic <class ItemType2>
ref struct MyStruct { void Test(...){} };   // C3268
// try the following line instead
// ref struct MyStruct { void Test2(){} };   // OK