X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=e4b6bd0f06123453a006abd6c1be70d67bbbe10c;hb=a44c5cf4f77b05a03;hp=7842ed8b337254ea5d2db61f537644056146e212;hpb=29be28e1a24898cec64470332740eaa54893b7a4;p=stockfish diff --git a/src/position.h b/src/position.h index 7842ed8b..e4b6bd0f 100644 --- a/src/position.h +++ b/src/position.h @@ -84,16 +84,17 @@ struct StateInfo { class Position { - // No defaul, copy c'tor or assignment allowed, default c'tor will not be - // generated anyhow because of user-defined c'tors. + // No copy c'tor or assignment operator allowed Position(const Position&); Position& operator=(const Position&); public: - Position(const Position& pos, int threadID); - Position(const std::string& fen, bool isChess960, int threadID); + Position() {} + Position(const Position& pos, int th) { copy(pos, th); } + Position(const std::string& fen, bool isChess960, int th); // Text input/output + void copy(const Position& pos, int th); void from_fen(const std::string& fen, bool isChess960); const std::string to_fen() const; void print(Move m = MOVE_NONE) const;