[Mesa-dev] [PATCH 1/2] clover: std::pair is not c++98/c++11 safe

EdB edb+mesa at sigluy.net
Mon Aug 4 08:03:23 PDT 2014


add a simple compat::pair
---
 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 50e1c7d..c5d1b39 100644
--- a/src/gallium/state_trackers/clover/util/compat.hpp
+++ b/src/gallium/state_trackers/clover/util/compat.hpp
@@ -295,6 +295,12 @@ namespace clover {
          }
       };
 
+      template<class T1, class T2 = T1>
+      struct pair {
+         T1 first;
+         T2 second;
+      };
+
       template<typename T>
       bool
       operator==(const vector_ref<T> &a, const vector_ref<T> &b) {
-- 
2.0.4



More information about the mesa-dev mailing list