[Solved] Finding a classmember in a vector of other class members


The error is giving you a good hint: you need to implement an equality operator for class Player. That is what std::find uses to determine if an element has been found.

Alternatively, you can use std::find_if with a custom unary predicate.

4

solved Finding a classmember in a vector of other class members