diff options
Diffstat (limited to 'searchlib/src/vespa/searchlib/expression/resultvector.h')
-rw-r--r-- | searchlib/src/vespa/searchlib/expression/resultvector.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/expression/resultvector.h b/searchlib/src/vespa/searchlib/expression/resultvector.h index 171659993ac..81d73e9b1f5 100644 --- a/searchlib/src/vespa/searchlib/expression/resultvector.h +++ b/searchlib/src/vespa/searchlib/expression/resultvector.h @@ -57,20 +57,20 @@ private: template <typename B> struct cmpT { - struct less : public std::binary_function<B, B, bool> { + struct less { bool operator()(const B & a, const B & b) { return a.cmp(b) < 0; } }; - struct equal : public std::binary_function<B, B, bool> { + struct equal { bool operator()(const B & a, const B & b) { return a.cmp(b) == 0; } }; }; template <typename B, typename V> struct contains { - struct less : public std::binary_function<B, V, bool> { + struct less { bool operator()(const B & a, const V & b) { return a.contains(b) < 0; } }; - struct equal : public std::binary_function<B, V, bool> { + struct equal { bool operator()(const B & a, const V & b) { return a.contains(b) == 0; } }; }; |