From ee92ff10b0e785894bee38e4c0ae3101dd8140cd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Jan 2024 11:04:19 +0100 Subject: wa --- serialize/packbits-write.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'serialize/packbits-write.cpp') diff --git a/serialize/packbits-write.cpp b/serialize/packbits-write.cpp index b549994e..84126ea4 100644 --- a/serialize/packbits-write.cpp +++ b/serialize/packbits-write.cpp @@ -5,22 +5,24 @@ namespace floormat::detail_Pack_output { using u32 = uint32_t; using u8 = uint8_t; template using f32 = output_field; -template using f8 = output_field, +template using f8 = output_field; static_assert(count_bits, f32<3>, f32<5>> >::length == 10); static_assert(count_bits>::length == 0); //static_assert(count_bits>>::length == 0); -template u32 write_(output, output_field); +template u32 write_(output, std::index_sequence<0>, const std::tuple>&); static_assert(output::next<1>::Capacity == 31); static_assert(output::next<1>::next<2>::Capacity == 29); template using f32 = output_field; +#if 0 static_assert(write_(output{0}, f32<2>{0b10}, f32<3>{0b011}, f32<3>{0b001}) == 0b000101110); +#endif } // namespace floormat::detail_Pack_output -- cgit v1.2.3