I am trying to overload the == operator and have it listed as a friend function. However, the compiler (visual studio6) is complaining that the data member I am trying to access is private.
Code:friend bool operator==(const GamePiece& lhs, const GamePiece& rhs); inline bool operator==(const GamePiece& lhs, const GamePiece& rhs) { return (lhs.side == rhs.side); }