From 851a4b5e58a697ff06ae6bd1a973854cd25f4e45 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 9 Apr 2024 18:15:44 +0200 Subject: c --- serialize/binary-serializer.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/serialize/binary-serializer.hpp b/serialize/binary-serializer.hpp index c95bedef..a320e086 100644 --- a/serialize/binary-serializer.hpp +++ b/serialize/binary-serializer.hpp @@ -37,6 +37,7 @@ constexpr CORRADE_ALWAYS_INLINE T maybe_byteswap(T x) noexcept } template +requires (sizeof(T) > 1) constexpr CORRADE_ALWAYS_INLINE T maybe_byteswap(T x) noexcept { if constexpr(std::endian::native == std::endian::big) -- cgit v1.2.3