Use emplace_back() in TB code
[stockfish] / src / syzygy / tbprobe.cpp
index 8f1ac15f9431b735615d44db5300911ae9fc34b2..d0b59f056a9c02119c7ca3ce94e3c6a7dd1341bd 100644 (file)
@@ -1277,7 +1277,7 @@ void Tablebases::init(const std::string& paths) {
                         continue; // First on diagonal, second above
 
                     else if (!off_A1H8(s1) && !off_A1H8(s2))
-                        bothOnDiagonal.push_back(std::make_pair(idx, s2));
+                        bothOnDiagonal.emplace_back(idx, s2);
 
                     else
                         MapKK[idx][s2] = code++;