X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=2eb7d1c62c6a0c9480a4ebf75c2e0adef1f6c277;hp=a58ac1ae4a8378e12b6ade96a732739246076b4c;hb=72c7595f8ac72c7831ee319b8b0bc46404c5fc27;hpb=54b7da120f6d88f66c22598fb2d1df29e9a17a9c diff --git a/src/ucioption.cpp b/src/ucioption.cpp index a58ac1ae..2eb7d1c6 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -22,7 +22,9 @@ //// Includes //// +#include #include +#include #include #include #include @@ -59,89 +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) { return this->idx < o.idx; } }; - typedef std::vector