Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C3268
Collapse the table of content
Expand the table of content

Compiler Error C3268

Error Message

'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

Community Additions

ADD
Show:
© 2015 Microsoft