Skip to content
Snippets Groups Projects
Commit 05d2f752 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Construct default BitVector for vectors with scalar entries

In that case the BitVector will be the input vector type, but with
entry type 'char'.
parent bc8da67f
Branches
No related tags found
No related merge requests found
...@@ -18,11 +18,18 @@ namespace Solvers { ...@@ -18,11 +18,18 @@ namespace Solvers {
namespace Imp { 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> template<class Vector>
struct DefaultBitVector struct DefaultBitVector
{ {
static_assert(AlwaysFalse<Vector>::value, "No DefaultBitVector known for this type."); static_assert(IsNumber<Vector>::value, "No DefaultBitVector known for this type.");
using type = void; using type = char;
}; };
template<class T, int i> template<class T, int i>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment