]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Improve handling of fail-highs in assumed PV
[stockfish] / src / ucioption.cpp
index 2eb7d1c62c6a0c9480a4ebf75c2e0adef1f6c277..765e80b4ed96eebba50df89b85dbcde1d435ddb3 100644 (file)
@@ -59,16 +59,16 @@ namespace {
 
     std::string name, defaultValue, currentValue;
     OptionType type;
+    size_t idx;
     int minValue, maxValue;
     ComboValues comboValues;
-    size_t idx;
 
     Option();
     Option(const char* defaultValue, OptionType = STRING);
     Option(bool defaultValue, OptionType = CHECK);
     Option(int defaultValue, int minValue, int maxValue);
 
-    bool operator<(const Option& o) { return this->idx < o.idx; }
+    bool operator<(const Option& o) const { return this->idx < o.idx; }
   };
 
   typedef std::map<std::string, Option> Options;