From e81d0d08c398f9a3708d9dadbb75d9b3feb5efaf Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 12 Apr 2009 18:01:06 +0200 Subject: [PATCH 1/1] Fix a compile error with Intel icc To make std::sort() work operator<() should be declared const. Signed-off-by: Marco Costalba --- src/ucioption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2