mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00: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:
parent
72c7595f8a
commit
e81d0d08c3
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ namespace {
|
||||||
Option(bool defaultValue, OptionType = CHECK);
|
Option(bool defaultValue, OptionType = CHECK);
|
||||||
Option(int defaultValue, int minValue, int maxValue);
|
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;
|
typedef std::map<std::string, Option> Options;
|
||||||
|
|
Loading…
Add table
Reference in a new issue