According to MSDN, Visual C ++ may issue C4523 warning 'class': several destructors are specified. How is this possible?
I tried the following:
class Class { ~Class(); ~Class(int); };
which the destructor gives must have a parameter list error "void" and warning C4523 and the following
class Class { ~Class(); ~Class(); };
which gives the member function an already defined or declared error and the following
class Class { int ~Class(); ~Class(); };
which the destructor gives cannot have a return type error.
So, how can I get warning C4523 and no errors?
source share