From: Francisco Jerez Date: Wed, 8 Oct 2014 22:02:19 +0000 (+0300) Subject: clover/util: Allow using key_equals with pair-like objects other than std::pair. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5583459655d61c9619284987e0272417db5daab3;p=mesa.git clover/util: Allow using key_equals with pair-like objects other than std::pair. --- diff --git a/src/gallium/state_trackers/clover/util/functional.hpp b/src/gallium/state_trackers/clover/util/functional.hpp index fb2877aaa37..ed69155c45b 100644 --- a/src/gallium/state_trackers/clover/util/functional.hpp +++ b/src/gallium/state_trackers/clover/util/functional.hpp @@ -332,9 +332,9 @@ namespace clover { key_equals_t(T &&x) : x(x) { } - template + template bool - operator()(const std::pair &p) const { + operator()(const P &p) const { return p.first == x; }