Udostępnij przez


Błąd kompilatora C3268

"function": funkcja ogólna lub funkcja-składowa klasy ogólnej nie może mieć listy parametrów zmiennych

Uwagi

Opcje kompilatora /clr:pure i /clr:safe są przestarzałe w programie Visual Studio 2015 i nieobsługiwane w programie Visual Studio 2017.

Aby uzyskać więcej informacji, zobacz Ogólne .

Przykład

Poniższy przykład generuje kod 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