]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
apply if constexpr to additional instances
[stockfish] / src / movepick.cpp
index dbe67357d60ebc6fad650873cb923facb3806886..65155a73f7936a308b13d099cb9071e704ce4298 100644 (file)
@@ -158,7 +158,7 @@ Move MovePicker::select(Pred filter) {
 
   while (cur < endMoves)
   {
-      if (T == Best)
+      if constexpr (T == Best)
           std::swap(*cur, *std::max_element(cur, endMoves));
 
       if (*cur != ttMove && filter())