From 5583459655d61c9619284987e0272417db5daab3 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 9 Oct 2014 01:02:19 +0300 Subject: clover/util: Allow using key_equals with pair-like objects other than std::pair. --- src/gallium/state_trackers/clover/util/functional.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/clover') 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; } -- cgit v1.2.3