aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/FixBitVec.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chilbert/FixBitVec.hpp')
-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; }