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