From b8f7747d79cbe41b75c5e2fa63f600954be07092 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Jan 2024 09:28:44 +0100 Subject: a --- serialize/packbits.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'serialize/packbits.hpp') diff --git a/serialize/packbits.hpp b/serialize/packbits.hpp index 954f86b5..c052369a 100644 --- a/serialize/packbits.hpp +++ b/serialize/packbits.hpp @@ -38,6 +38,7 @@ struct Storage template constexpr T get() const { + static_assert(N > 0); static_assert(N <= sizeof(T)*8); static_assert(N <= Capacity); return T(value & (T(1) << N) - T(1)); -- cgit v1.2.3