From fead2b04632eb4e1e50f1fb08be5d2c033457840 Mon Sep 17 00:00:00 2001 From: EdB Date: Thu, 9 Oct 2014 01:06:48 +0300 Subject: [PATCH] clover: Add a simple compat::pair. std::pair is not c++98/c++11 safe. Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/util/compat.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/state_trackers/clover/util/compat.hpp b/src/gallium/state_trackers/clover/util/compat.hpp index eaae8c02940..a52a6af7a46 100644 --- a/src/gallium/state_trackers/clover/util/compat.hpp +++ b/src/gallium/state_trackers/clover/util/compat.hpp @@ -412,6 +412,15 @@ namespace clover { mutable vector v; }; + template + struct pair { + pair(T first, S second) : + first(first), second(second) {} + + S first; + T second; + }; + class exception { public: exception() {} -- 2.30.2