aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/FixBitVec.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-08-18 17:40:30 +0200
committerDavid Robillard <d@drobilla.net>2018-09-29 14:47:01 +0200
commitfaa5c52caaa74761dd5e0078b5472da202e955ec (patch)
treef2971ec6ae00a3a5355f4616cbbe0a62a64fe3f2 /chilbert/FixBitVec.hpp
parentad4f4edefc5da702e9efa4ec7b40830e91abb6cf (diff)
downloadchilbert-faa5c52caaa74761dd5e0078b5472da202e955ec.tar.gz
chilbert-faa5c52caaa74761dd5e0078b5472da202e955ec.tar.bz2
chilbert-faa5c52caaa74761dd5e0078b5472da202e955ec.zip
Remove problematic conversion operators
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 289334a..610119f 100644
--- a/chilbert/FixBitVec.hpp
+++ b/chilbert/FixBitVec.hpp
@@ -49,6 +49,12 @@ public:
assert(bits <= FBV_BITS);
}
+ CFixBitVec(const size_t bits, const FBV_UINT value)
+ : m_rack{value}
+ {
+ assert(bits <= FBV_BITS);
+ }
+
/// Return the size in bits
size_t size() const { return FBV_BITS; }