I build my project. it has no error except one that it say it is in list class! the default list class not mine.
the error is
Error 1 error C2678: binary ‘==’ : no operator found which takes a left-hand operand of type ‘moveStringTree’ (or there is no acceptable conversion)
std::list::removedepends on the == operator to correctly associate the object passed to an object in the list. Define this in your moveStringTree class:Where x is the value you want to compare.
If you want to remove the object only if it is the same instance, compare the pointers.