X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=442ca924e10761a030213f8a32533ad943509963;hp=c777383e47a05fd16ceec4462f7eabf7de9bcea4;hb=991ab2bea8448bcd01586db8439ab749e96da7ff;hpb=31d4f0b73430677e79873beef16830dc07857ddd diff --git a/src/ucioption.cpp b/src/ucioption.cpp index c777383e..442ca924 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -22,7 +22,9 @@ //// Includes //// +#include #include +#include #include #include #include @@ -36,7 +38,7 @@ //// Variables //// -bool Chess960 = false; +bool Chess960; //// @@ -57,92 +59,92 @@ namespace { std::string name, defaultValue, currentValue; OptionType type; + size_t idx; int minValue, maxValue; ComboValues comboValues; - Option(const char* name, const char* defaultValue, OptionType = STRING); - Option(const char* name, bool defaultValue, OptionType = CHECK); - Option(const char* name, int defaultValue, int minValue, int maxValue); + Option(); + Option(const char* defaultValue, OptionType = STRING); + Option(bool defaultValue, OptionType = CHECK); + Option(int defaultValue, int minValue, int maxValue); + + bool operator<(const Option& o) const { return this->idx < o.idx; } }; - typedef std::vector