X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=1504f64ec41c8d88c3bfe40283a61907bb2af1bd;hp=e34c0e775b4d3fdc21ee4f258c5e4de7e6416a5d;hb=e81d0d08c398f9a3708d9dadbb75d9b3feb5efaf;hpb=2fa9d25e8241e3cd8f53275aae05c959c555ba5a diff --git a/src/ucioption.cpp b/src/ucioption.cpp index e34c0e77..1504f64e 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -22,7 +22,9 @@ //// Includes //// +#include #include +#include #include #include #include @@ -59,88 +61,95 @@ namespace { OptionType type; int minValue, maxValue; ComboValues comboValues; + size_t idx; - 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