From: EdB Date: Wed, 8 Oct 2014 22:06:48 +0000 (+0300) Subject: clover: Add a simple compat::pair. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fead2b04632eb4e1e50f1fb08be5d2c033457840;p=mesa.git clover: Add a simple compat::pair. std::pair is not c++98/c++11 safe. Reviewed-by: Francisco Jerez --- 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() {}