Skip to content
Snippets Groups Projects
Commit 90499925 authored by Jorrit Fahlke's avatar Jorrit Fahlke
Browse files

[Dune::Length] Make it work with native tuples (C++0x).

[[Imported from SVN: r6069]]
parent 84638808
Branches
Tags
No related merge requests found
......@@ -220,14 +220,10 @@ namespace Dune {
* @brief Helper template to calculate length of a tuple.
*/
template <class Tuple>
struct Length {};
template<typename T1, typename T2, typename T3, typename T4, typename T5,
typename T6, typename T7, typename T8, typename T9>
struct Length<tuple<T1,T2,T3,T4,T5,T6,T7,T8,T9> >
struct Length
{
enum {
value=tuple_size<tuple<T1,T2,T3,T4,T5,T6,T7,T8,T9> >::value
value=tuple_size<Tuple>::value
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment