Skip to content
Snippets Groups Projects

Specialize std::tuple_size for MultiTypeBlock*

Merged Carsten Gräser requested to merge feature/multitype-tuple-size into master
2 files
+ 18
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -613,5 +613,14 @@ namespace std
{
using type = typename std::tuple_element<i, std::tuple<Args...> >::type;
};
/** \brief Make std::tuple_size work for MultiTypeBlockMatrix
*
* It derives from std::tuple after all.
*/
template <typename... Args>
struct tuple_size<Dune::MultiTypeBlockMatrix<Args...> >
: std::integral_constant<std::size_t, sizeof...(Args)>
{};
}
#endif
Loading