From: Marco Costalba Date: Sun, 12 Apr 2009 16:01:06 +0000 (+0200) Subject: Fix a compile error with Intel icc X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e81d0d08c398f9a3708d9dadbb75d9b3feb5efaf;hp=72c7595f8ac72c7831ee319b8b0bc46404c5fc27 Fix a compile error with Intel icc To make std::sort() work operator<() should be declared const. Signed-off-by: Marco Costalba --- 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;