'destructor' : destructor cannot return a value
A destructor cannot return a value of void or any other type. Remove the return statement from the destructor definition.
The following sample generates C2577:
class A { public: A() { } ~A() { return 0; // C2577, remove to resolve the error } }; void main() { }