Skip to content
Snippets Groups Projects
Commit 3a335a73 authored by Markus Blatt's avatar Markus Blatt
Browse files

Fixed the test. We have strip the const before using tuple_element.

Fixes fysprAY 523

[[Imported from SVN: r5476]]
parent d45c30bc
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment