Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 601 Bytes

compiler-error-c2523.md

File metadata and controls

24 lines (20 loc) · 601 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2523
Compiler Error C2523
11/04/2016
C2523
C2523
7951b700-8f37-45a0-beb4-a79ae0ced72e

Compiler Error C2523

'class::~identifier' : destructor/finalizer tag mismatch

The name of the destructor must be the class name preceded by a tilde (~). The constructor and destructor are the only members that have the same name as the class.

The following sample generates C2523:

// C2523.cpp
// compile with: /c
class A {
   ~B();    // C2523
   ~A();   // OK
};