diff --git a/dune/solvers/common/defaultbitvector.hh b/dune/solvers/common/defaultbitvector.hh index 7f82dbff5dd9a625493346e345222a5a676af34a..c8f301148d7ce8d134929eabccc74d1de80742f8 100644 --- a/dune/solvers/common/defaultbitvector.hh +++ b/dune/solvers/common/defaultbitvector.hh @@ -5,6 +5,7 @@ #include <dune/common/bitsetvector.hh> #include <dune/common/fvector.hh> +#include <dune/common/typetraits.hh> #include <dune/istl/bvector.hh> #include <dune/istl/multitypeblockvector.hh> @@ -20,9 +21,16 @@ namespace Imp { template<class Vector> struct DefaultBitVector { + static_assert(AlwaysFalse<Vector>::value, "No DefaultBitVector known for this type."); using type = void; }; +template<class T, int i> +struct DefaultBitVector<FieldVector<T,i>> +{ + using type = std::bitset<i>; +}; + template<class T, class A> struct DefaultBitVector<BlockVector<T,A>> {