mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Fix a compile error with Intel icc
To make std::sort() work operator<() should be declared const. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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<std::string, Option> Options;
|
||||
|
||||
Reference in New Issue
Block a user