From fe95f4a1b91c1a08d92d82dfac046ba4533a84b7 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 16 Aug 2018 11:55:24 -0500
Subject: [PATCH] Switch from std::r{begin,end} to container.r{begin,end} for
 older compilers

---
 src/tools.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tools.hpp b/src/tools.hpp
index 30f4b08f..935dab7a 100644
--- a/src/tools.hpp
+++ b/src/tools.hpp
@@ -37,10 +37,10 @@ namespace pyopencl
   struct reversion_wrapper { T& iterable; };
 
   template <typename T>
-  auto begin (reversion_wrapper<T> w) { return std::rbegin(w.iterable); }
+  auto begin (reversion_wrapper<T> w) { return w.iterable.rbegin(); }
 
   template <typename T>
-  auto end (reversion_wrapper<T> w) { return std::rend(w.iterable); }
+  auto end (reversion_wrapper<T> w) { return w.iterable.rend(); }
 
   template <typename T>
   reversion_wrapper<T> reverse (T&& iterable) { return { iterable }; }
-- 
GitLab