[Mesa-dev] [PATCH 1/3] clover: add a simple compat::pair

EdB edb+mesa at sigluy.net
Sun Sep 28 03:57:20 PDT 2014


std::pair is not c++98/c++11 safe
---
 src/gallium/state_trackers/clover/util/compat.hpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/state_trackers/clover/util/compat.hpp b/src/gallium/state_trackers/clover/util/compat.hpp
index 7305577..dd20ef0 100644
--- a/src/gallium/state_trackers/clover/util/compat.hpp
+++ b/src/gallium/state_trackers/clover/util/compat.hpp
@@ -380,6 +380,12 @@ namespace clover {
          mutable vector<char> v;
       };
 
+      template<class T1, class T2>
+      struct pair {
+         T1 first;
+         T2 second;
+      };
+
       template<typename T>
       bool
       operator==(const vector_ref<T> &a, const vector_ref<T> &b) {
-- 
2.1.1



More information about the mesa-dev mailing list