summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdB <[email protected]>2014-10-09 01:06:48 +0300
committerFrancisco Jerez <[email protected]>2014-10-20 10:33:02 +0300
commitfead2b04632eb4e1e50f1fb08be5d2c033457840 (patch)
tree029c14c43454c221ee8e3d47df7b77e688224e81 /src
parent5583459655d61c9619284987e0272417db5daab3 (diff)
clover: Add a simple compat::pair.
std::pair is not c++98/c++11 safe. Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/util/compat.hpp9
1 files changed, 9 insertions, 0 deletions
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<char> v;
};
+ template<typename T, typename S>
+ struct pair {
+ pair(T first, S second) :
+ first(first), second(second) {}
+
+ S first;
+ T second;
+ };
+
class exception {
public:
exception() {}