'class::~identifier' : destructor 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:
class A { ~B(); // C2523 // the line below resolves the error // ~A(); }; void main() { }