mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Avoid friend
operator<<(os, pos) does not need to access any private members of pos. No functional change. Resolves #492
This commit is contained in:
@@ -82,8 +82,6 @@ struct StateInfo {
|
||||
|
||||
class Position {
|
||||
|
||||
friend std::ostream& operator<<(std::ostream&, const Position&);
|
||||
|
||||
public:
|
||||
static void init();
|
||||
|
||||
@@ -210,6 +208,8 @@ private:
|
||||
bool chess960;
|
||||
};
|
||||
|
||||
extern std::ostream& operator<<(std::ostream& os, const Position& pos);
|
||||
|
||||
inline Color Position::side_to_move() const {
|
||||
return sideToMove;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user