diff --git a/dune/solvers/common/defaultbitvector.hh b/dune/solvers/common/defaultbitvector.hh index c8f301148d7ce8d134929eabccc74d1de80742f8..0b7d7cf3c26c86c4d616b9c559d4a7eac109e671 100644 --- a/dune/solvers/common/defaultbitvector.hh +++ b/dune/solvers/common/defaultbitvector.hh @@ -18,11 +18,18 @@ namespace Solvers { namespace Imp { +/** \brief Construct a bitvector type with a nesting that matches the one of a given vector + * + * The default implementation implements the case where the vector is a number type + * (to end recursion), and returns 'char' in such cases. + * + * \tparam Vector The vector types whose nesting shall be matched + */ template<class Vector> struct DefaultBitVector { - static_assert(AlwaysFalse<Vector>::value, "No DefaultBitVector known for this type."); - using type = void; + static_assert(IsNumber<Vector>::value, "No DefaultBitVector known for this type."); + using type = char; }; template<class T, int i>