Sdílet prostřednictvím


Chyba kompilátoru C2849

'destruktor' : rozhraní nemůže mít destruktor

Poznámky

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

Example

Následující příklad generuje C2849:

// C2849.cpp
// compile with: /c
__interface C {
   ~C();   // C2849 destructor not allowed in an interface
};