summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-13 10:43:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-13 10:43:51 +0100
commitcf34ddca8ef7d75f864fa51ee42fda9642cdfb1a (patch)
tree401bb72bd5a427b5231db99f076e09945dca6f6a
parentd647445468525722c4361277180f7584b8863496 (diff)
a
-rw-r--r--serialize/packbits.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/serialize/packbits.hpp b/serialize/packbits.hpp
index c052369a..e730770f 100644
--- a/serialize/packbits.hpp
+++ b/serialize/packbits.hpp
@@ -32,6 +32,8 @@ template<std::unsigned_integral T, size_t CAPACITY>
struct Storage
{
static_assert(CAPACITY <= sizeof(T)*8);
+
+ using Type = T;
static constexpr size_t Capacity = CAPACITY;
T value;
@@ -61,6 +63,7 @@ struct Storage
template<std::unsigned_integral T>
struct Storage<T, 0>
{
+ using Type = T;
static constexpr size_t Capacity = 0;
T value;