[Piece] Fix incorrect comparison == operator
This commit is contained in:
@@ -35,7 +35,7 @@ std::optional<PieceType> Piece::pieceTypeFromSymbol(char symbol) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const Piece &lhs, const Piece &rhs) {
|
bool operator==(const Piece &lhs, const Piece &rhs) {
|
||||||
return lhs.color() == lhs.color() && lhs.type() == rhs.type();
|
return lhs.color() == rhs.color() && lhs.type() == rhs.type();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream &operator<<(std::ostream &os, const Piece &piece) {
|
std::ostream &operator<<(std::ostream &os, const Piece &piece) {
|
||||||
|
Reference in New Issue
Block a user