diff options
author | Determinant <ted.sybil@gmail.com> | 2018-07-13 19:15:21 -0400 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2018-07-13 19:15:21 -0400 |
commit | 2c088213e0768d4fe9d9a0126702608b457bc943 (patch) | |
tree | 0ff81bcc2b7f0c59d74dec7e8d1e07e4349ee572 /include/salticidae/stream.h | |
parent | f786c5fcc65722db13bb3c024b825e2ae5de46ee (diff) |
...
Diffstat (limited to 'include/salticidae/stream.h')
-rw-r--r-- | include/salticidae/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/salticidae/stream.h b/include/salticidae/stream.h index 2d0c963..7273882 100644 --- a/include/salticidae/stream.h +++ b/include/salticidae/stream.h @@ -275,6 +275,7 @@ class _Bits { using _impl_type = T; static const uint32_t bit_per_datum = sizeof(_impl_type) * 8; static const uint32_t shift_per_datum = log2<bit_per_datum>::value; + static_assert(bit_per_datum == 1 << shift_per_datum); BoxObj<_impl_type[]> data; uint32_t nbits; uint32_t ndata; |