diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-12 22:26:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 02:29:09 +0100 |
commit | aeb346ea244f15faf75b948de6fdf33c1431a6b1 (patch) | |
tree | 3e955e0adbe4c627c62630da647c0075e999f796 | |
parent | 84b8a220091e64bb1dd6c66fa49edac673df4ddb (diff) |
a
-rw-r--r-- | serialize/packbits.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/serialize/packbits.cpp b/serialize/packbits.cpp index 81c6c172..12f80791 100644 --- a/serialize/packbits.cpp +++ b/serialize/packbits.cpp @@ -48,6 +48,11 @@ using foo5 = ibits<20>; using bar5 = check_size_overflow<uint16_t, 0, foo1, foo2, foo3, foo4, foo5>; static_assert(!bar5::result); static_assert(bar5::size == 37); + +using foo6 = ibits<40>; +using bar6 = check_size_overflow<uint16_t, 0, foo1, foo2, foo3, foo4, foo6>; +static_assert(!bar6::result); +static_assert(bar6::size == 57); } // namespace test2 } // namespace |