Udostępnij przez


Błąd kompilatora C2849

"destruktor": interfejs nie może mieć destruktora

Uwagi

Interfejs Visual C++ nie może mieć destruktora.

Example

Poniższy przykład generuje kod C2849:

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