Aracılığıyla paylaş


Derleyici Hatası C3268

'function' : Genel bir işlevin veya genel bir sınıfın üye işlevinin değişken parametre listesi olamaz

Açıklamalar

/clr:pure ve /clr:safe derleyici seçenekleri Visual Studio 2015'te kullanım dışıdır ve Visual Studio 2017'de desteklenmez.

Daha fazla bilgi için bkz . Genel Bilgiler .

Örnek

Aşağıdaki örnek C3268 oluşturur.

// 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