From 2892e007d18f333ca656c24491ae99164372ece9 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Thu, 16 Jun 2016 12:47:36 +0200
Subject: [PATCH] Make compile with clang

---
 dune/solvers/common/algorithm.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/solvers/common/algorithm.hh b/dune/solvers/common/algorithm.hh
index fbb84469..20532fcf 100644
--- a/dune/solvers/common/algorithm.hh
+++ b/dune/solvers/common/algorithm.hh
@@ -425,8 +425,8 @@ template<class Index, class Begin, class End, class F, class... Args,
     std::enable_if_t<IsIntegralConstant<Begin>::value and IsIntegralConstant<End>::value, int> = 0>
 void integralRangeFor(Begin&& begin, End&& end, F&& f, Args&&... args)
 {
-  static const Index begin_t = begin;
-  static const Index end_t = end;
+  static const Index begin_t = std::decay_t<Begin>::value;
+  static const Index end_t = std::decay_t<End>::value;
   StaticForLoop<Index, begin_t, end_t>::apply(std::forward<F>(f), std::forward<Args>(args)...);
 }
 
-- 
GitLab