diff options
author | Francisco Jerez <[email protected]> | 2014-10-09 01:02:19 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-10-20 10:33:02 +0300 |
commit | 5583459655d61c9619284987e0272417db5daab3 (patch) | |
tree | 145667ad9f7639c314a76e09ada4181590bfa3a4 /src/gallium/state_trackers/clover | |
parent | e987fd5dc6bf8cd161e442c8e6231f0334e12dbf (diff) |
clover/util: Allow using key_equals with pair-like objects other than std::pair.
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r-- | src/gallium/state_trackers/clover/util/functional.hpp | 4 |
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; } |