summaryrefslogtreecommitdiffhomepage
path: root/serialize
diff options
context:
space:
mode:
Diffstat (limited to 'serialize')
-rw-r--r--serialize/binary-serializer.hpp1
1 files changed, 1 insertions, 0 deletions
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<integer T>
+requires (sizeof(T) > 1)
constexpr CORRADE_ALWAYS_INLINE T maybe_byteswap(T x) noexcept
{
if constexpr(std::endian::native == std::endian::big)