[Solved] No operator “==” matches these operands for sf::RectangleShape
There is no equality operator defined for the sf::RectangleShape class. You will need to create one, and decide on exactly what properties determine equality. Perhaps size and position are what you care about. So you could define the following function: bool operator==( const sf::RectangleShape & a, const sf::RectangleShape & b ) { return a.getSize() == … Read more