diff options
Diffstat (limited to 'searchlib/src/vespa/searchlib/aggregation/group.h')
-rw-r--r-- | searchlib/src/vespa/searchlib/aggregation/group.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/aggregation/group.h b/searchlib/src/vespa/searchlib/aggregation/group.h index 4b06bcd8cae..202c5085133 100644 --- a/searchlib/src/vespa/searchlib/aggregation/group.h +++ b/searchlib/src/vespa/searchlib/aggregation/group.h @@ -39,7 +39,7 @@ public: using UP = std::unique_ptr<Group>; typedef Group * ChildP; typedef ChildP * GroupList; - struct GroupEqual : public std::binary_function<ChildP, ChildP, bool> { + struct GroupEqual { GroupEqual(const GroupList * v) : _v(v) { } bool operator()(uint32_t a, uint32_t b) { return (*_v)[a]->getId().cmpFast((*_v)[b]->getId()) == 0; } bool operator()(const Group & a, uint32_t b) { return a.getId().cmpFast((*_v)[b]->getId()) == 0; } |