From 3a335a73b0478aa6babe5fadbb7f30e0847c7cd9 Mon Sep 17 00:00:00 2001
From: Markus Blatt <mblatt@dune-project.org>
Date: Wed, 18 Mar 2009 16:15:24 +0000
Subject: [PATCH] Fixed the test. We have strip the const before using
 tuple_element.

Fixes fysprAY 523

[[Imported from SVN: r5476]]
---
 common/test/deprtuplestest.cc | 2 +-
 common/test/tuplestest.cc     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/test/deprtuplestest.cc b/common/test/deprtuplestest.cc
index afc67e7bc..fa31b942b 100644
--- a/common/test/deprtuplestest.cc
+++ b/common/test/deprtuplestest.cc
@@ -40,7 +40,7 @@ void test(T& tuple)
   c = Element<3>::get(tuple);
   std::string s;
   s = Element<4>::get(tuple);
-  typename ElementType<4,T>::Type s2 = Element<4>::get(tuple);
+  typename ElementType<4,typename remove_const<T>::type>::Type s2 = Element<4>::get(tuple);
 }
 
 int iteratorTupleTest()
diff --git a/common/test/tuplestest.cc b/common/test/tuplestest.cc
index fcfc022ef..ef9e258b5 100644
--- a/common/test/tuplestest.cc
+++ b/common/test/tuplestest.cc
@@ -40,7 +40,7 @@ void test(T& tuple)
   c = get<3>(tuple);
   std::string s;
   s = get<4>(tuple);
-  typename tuple_element<4,T>::type s2 = get<4>(tuple);
+  typename tuple_element<4,typename remove_const<T>::type>::type s2 = get<4>(tuple);
 }
 
 int iteratorTupleTest()
-- 
GitLab