Sdílet prostřednictvím


Chyba kompilátoru C2846

"konstruktor" : rozhraní nemůže mít konstruktor.

Poznámky

Rozhraní Jazyka Visual C++ nemůže mít konstruktor.

Example

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

// C2846.cpp
// compile with: /c
__interface C {
   C();   // C2846 constructor not allowed in an interface
};