X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=765e80b4ed96eebba50df89b85dbcde1d435ddb3;hp=2eb7d1c62c6a0c9480a4ebf75c2e0adef1f6c277;hb=a52ab2afbf38e42376732d41b14279fd29fcf23f;hpb=e38ad4d42ba0b363581444feafd0f10b92e17f9a diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 2eb7d1c6..765e80b4 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -59,16 +59,16 @@ namespace { std::string name, defaultValue, currentValue; OptionType type; + size_t idx; int minValue, maxValue; ComboValues comboValues; - size_t idx; 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; } + bool operator<(const Option& o) const { return this->idx < o.idx; } }; typedef std::map Options;