diff options
Diffstat (limited to 'serialize/packbits.hpp')
-rw-r--r-- | serialize/packbits.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/packbits.hpp b/serialize/packbits.hpp index e730770f..cb91602f 100644 --- a/serialize/packbits.hpp +++ b/serialize/packbits.hpp @@ -78,8 +78,8 @@ struct Storage<T, 0> template<size_t N> struct next { - static_assert(!std::is_same_v<T, void>, "reading past the end"); - static_assert( std::is_same_v<T, void>, "reading past the end"); + static_assert(N == 0, "reading past the end"); + static_assert(N != 0, "reading past the end"); }; }; |