Compiler Error C2521

destructors do not take parameters

You attempted to use a destructor with parameters. Rewrite the statement without parameters.