X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.cpp;h=316ed76ba63783b4542ca2cc7bd5f89e80043dd1;hb=53051eefc741586f72ccbf9a765592c4ca6030bd;hp=14c778f8699fb2456fe4e7ec064e7c0db283b5ac;hpb=9f94d2280110a1ba5eb9eb15b0756883037a817d;p=stockfish
diff --git a/src/thread.cpp b/src/thread.cpp
index 14c778f8..316ed76b 100644
--- a/src/thread.cpp
+++ b/src/thread.cpp
@@ -17,6 +17,7 @@
along with this program. If not, see .
*/
+#include // For std::count
#include
#include
@@ -370,7 +371,8 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits,
RootMoves.clear();
for (MoveList ml(pos); !ml.end(); ++ml)
- if (searchMoves.empty() || count(searchMoves.begin(), searchMoves.end(), ml.move()))
+ if ( searchMoves.empty()
+ || std::count(searchMoves.begin(), searchMoves.end(), ml.move()))
RootMoves.push_back(RootMove(ml.move()));
main_thread()->thinking = true;