aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-08-11 19:35:53 +0200
committerDavid Robillard <d@drobilla.net>2018-09-29 14:46:19 +0200
commit16ec07372eaa92e361f66687d6da2d7e5541c0aa (patch)
treea1256b9a1b55f98cd3988059cebee4554e8f96a2 /chilbert
parentfdcdfdc94293f8259f082081a11fc004fc5f8fc9 (diff)
downloadchilbert-16ec07372eaa92e361f66687d6da2d7e5541c0aa.tar.gz
chilbert-16ec07372eaa92e361f66687d6da2d7e5541c0aa.tar.bz2
chilbert-16ec07372eaa92e361f66687d6da2d7e5541c0aa.zip
Flesh out bitvec tests
Diffstat (limited to 'chilbert')
-rw-r--r--chilbert/FixBitVec.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/chilbert/FixBitVec.hpp b/chilbert/FixBitVec.hpp
index 05af40e..9df2ada 100644
--- a/chilbert/FixBitVec.hpp
+++ b/chilbert/FixBitVec.hpp
@@ -40,6 +40,12 @@ typedef uint64_t FBV_UINT;
class CFixBitVec
{
public:
+ CFixBitVec(int bits = FBV_BITS)
+ : m_rack{0}
+ {
+ assert(bits <= FBV_BITS);
+ }
+
/// Return the size in bits
int size() const { return FBV_BITS; }