Module: Mesa Branch: master Commit: fead2b04632eb4e1e50f1fb08be5d2c033457840 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fead2b04632eb4e1e50f1fb08be5d2c033457840
Author: EdB <[email protected]> Date: Thu Oct 9 01:06:48 2014 +0300 clover: Add a simple compat::pair. std::pair is not c++98/c++11 safe. Reviewed-by: Francisco Jerez <[email protected]> --- 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 eaae8c0..a52a6af 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() {} _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
