clover/util: Allow using key_equals with pair-like objects other than std::pair.
This commit is contained in:
@@ -332,9 +332,9 @@ namespace clover {
|
||||
key_equals_t(T &&x) : x(x) {
|
||||
}
|
||||
|
||||
template<typename S>
|
||||
template<typename P>
|
||||
bool
|
||||
operator()(const std::pair<T, S> &p) const {
|
||||
operator()(const P &p) const {
|
||||
return p.first == x;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user