diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 2eb7d1c6..1504f64e 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -68,7 +68,7 @@ namespace { 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;