Sdílet prostřednictvím


Chyba kompilátoru C3266

'class' : konstruktor třídy musí mít seznam parametrů void.

Poznámky

Konstruktory třídy ve třídě používající programování /clr nemohou přijímat parametry.

Example

Následující příklad vygeneruje C3266:

// C3266.cpp
// compile with: /clr

ref class X {
   static X(int i) { // C3266
   // try the following line instead
   // static X() {
   }
};

int main() {
}