]> git.sesse.net Git - stockfish/blobdiff - src/position.h
More idiomatic signature for operator=()
[stockfish] / src / position.h
index 27a70aaedde51b83a25cb22a216f474dde603896..9528bb71963ac01e428fc93ca4f589bebb49e8a3 100644 (file)
@@ -97,7 +97,7 @@ public:
   Position(const Position& p) { *this = p; }
   Position(const Position& p, Thread* t) { *this = p; thisThread = t; }
   Position(const std::string& f, bool c960, Thread* t) { from_fen(f, c960, t); }
-  void operator=(const Position&);
+  Position& operator=(const Position&);
 
   // Text input/output
   void from_fen(const std::string& fen, bool isChess960, Thread* th);