summaryrefslogtreecommitdiffhomepage
path: root/serialize/packbits-write.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-16 02:01:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-16 02:01:42 +0100
commitaa886694c752b043bdbab99b624683eb10656d11 (patch)
tree3a36e42655749afe1a8c5cf8e470a1d6ad9f8f3b /serialize/packbits-write.hpp
parentfe70244f22ad59fa34f08235240ae9c55a6dce1e (diff)
serialize/pack: holy shit it works
Diffstat (limited to 'serialize/packbits-write.hpp')
-rw-r--r--serialize/packbits-write.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/serialize/packbits-write.hpp b/serialize/packbits-write.hpp
index a98833ad..1a91cbcf 100644
--- a/serialize/packbits-write.hpp
+++ b/serialize/packbits-write.hpp
@@ -34,20 +34,6 @@ struct output_field
template<std::unsigned_integral Type, typename Tuple> struct count_bits_;
-template<std::unsigned_integral Int, size_t N, typename... Ts>
-struct count_bits_<Int, std::tuple<output_field<Int, N>, Ts...>>
-{
- static constexpr size_t length = N + count_bits_<Int, std::tuple<Ts...>>::length;
- static_assert(length <= sizeof(Int)*8);
-};
-
-template<std::unsigned_integral Int> struct count_bits_<Int, std::tuple<>>
-{
- static constexpr size_t length = 0;
-};
-
-template<typename T, typename Tuple> constexpr inline size_t count_bits = count_bits_<T, Tuple>::length;
-
template <std::size_t ... Is>
constexpr std::index_sequence<sizeof...(Is)-1uz-Is...> reverse_index_sequence(std::index_sequence<Is...> const&);