]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Disable spinlocks
[stockfish] / src / ucioption.cpp
index 28a0ad5247d443930ce0d78afe0a03d6dab4ca1b..06641cf5081908aa04c804b4ba2e75c022cc2db2 100644 (file)
@@ -81,7 +81,7 @@ void init(OptionsMap& o) {
 std::ostream& operator<<(std::ostream& os, const OptionsMap& om) {
 
   for (size_t idx = 0; idx < om.size(); ++idx)
-      for (auto it : om)
+      for (const auto& it : om)
           if (it.second.idx == idx)
           {
               const Option& o = it.second;