X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=49e8f228ee36ab039b73cc514b69533556a93685;hp=95e3e279bef7714e225112e9fd618ee1f31ea04c;hb=ebb0f31928621115037779ba14311d1ec8b90542;hpb=bfcfaf71018b3aed274ebd544a10c4508718e7de diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 95e3e279..49e8f228 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 std::string& 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