diff options
-rw-r--r-- | eval/src/tests/eval/gbdt/gbdt_benchmark.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/eval/src/tests/eval/gbdt/gbdt_benchmark.cpp b/eval/src/tests/eval/gbdt/gbdt_benchmark.cpp index 230f1ed251e..20e04c9593e 100644 --- a/eval/src/tests/eval/gbdt/gbdt_benchmark.cpp +++ b/eval/src/tests/eval/gbdt/gbdt_benchmark.cpp @@ -95,7 +95,7 @@ std::vector<Option> all_options({{0, none},{1, vm_forest}}); struct Result { double us; size_t opt_idx; - bool operator<(const Result &rhs) { + bool operator<(const Result &rhs) const { return (us < rhs.us); } }; diff --git a/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp b/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp index c0e8871b80a..f11df42f6b1 100644 --- a/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp +++ b/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp @@ -19,7 +19,7 @@ struct WordFieldPair { WordFieldPair(vespalib::stringref word, uint32_t fieldId) : _word(word), _fieldId(fieldId) {} - bool operator<(const WordFieldPair &rhs) { + bool operator<(const WordFieldPair &rhs) const { if (_word != rhs._word) { return _word < rhs._word; } |