left of '->~identifier' must point to class/struct/union
The expression on the left side of the -> operator did not evaluate to a pointer to a class, structure, or union.