X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=1504f64ec41c8d88c3bfe40283a61907bb2af1bd;hp=95e3e279bef7714e225112e9fd618ee1f31ea04c;hb=e81d0d08c398f9a3708d9dadbb75d9b3feb5efaf;hpb=bfcfaf71018b3aed274ebd544a10c4508718e7de diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 95e3e279..1504f64e 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -22,7 +22,9 @@ //// Includes //// +#include #include +#include #include #include #include @@ -59,87 +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