From 4a70bfd7dc1e0aa695ba468822e1d61f939b4922 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Jan 2024 09:19:45 +0100 Subject: a --- serialize/packbits.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'serialize/packbits.cpp') diff --git a/serialize/packbits.cpp b/serialize/packbits.cpp index 1428b203..8a5d376b 100644 --- a/serialize/packbits.cpp +++ b/serialize/packbits.cpp @@ -10,7 +10,7 @@ namespace { constexpr bool test1() { constexpr size_t bits[] = { 5, 2, 1, 0 }; - constexpr size_t vals[] = { 3, 1, 0 }; + constexpr size_t vals[] = { 8, 3, 1, 0 }; constexpr auto S0 = Storage{0b10111011}; constexpr auto S1 = Storage{0b00000101}; @@ -21,10 +21,12 @@ constexpr bool test1() using P1 = P0::next; using P2 = P1::next; using P3 = P2::next; + using P4 = P2::next; - static_assert(std::is_same_v>); - static_assert(std::is_same_v>); - static_assert(std::is_same_v>); + static_assert(std::is_same_v>); + static_assert(std::is_same_v>); + static_assert(std::is_same_v>); + static_assert(std::is_same_v>); static_assert(S0.advance<5>() == S1.value); static_assert(S1.advance<2>() == S2.value); -- cgit v1.2.3