aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2014-10-09 01:02:19 +0300
committerFrancisco Jerez <[email protected]>2014-10-20 10:33:02 +0300
commit5583459655d61c9619284987e0272417db5daab3 (patch)
tree145667ad9f7639c314a76e09ada4181590bfa3a4
parente987fd5dc6bf8cd161e442c8e6231f0334e12dbf (diff)
clover/util: Allow using key_equals with pair-like objects other than std::pair.
-rw-r--r--src/gallium/state_trackers/clover/util/functional.hpp4
1 files changed, 2 insertions, 2 deletions
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<typename S>
+ template<typename P>
bool
- operator()(const std::pair<T, S> &p) const {
+ operator()(const P &p) const {
return p.first == x;
}