clover/util: Allow using key_equals with pair-like objects other than std::pair.

This commit is contained in:
Francisco Jerez 2014-10-09 01:02:19 +03:00
parent e987fd5dc6
commit 5583459655
1 changed files with 2 additions and 2 deletions

View File

@ -332,9 +332,9 @@ namespace clover {
key_equals_t(T &&x) : x(x) { key_equals_t(T &&x) : x(x) {
} }
template<typename S> template<typename P>
bool bool
operator()(const std::pair<T, S> &p) const { operator()(const P &p) const {
return p.first == x; return p.first == x;
} }