summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-09 18:15:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-09 18:15:44 +0200
commit851a4b5e58a697ff06ae6bd1a973854cd25f4e45 (patch)
tree0ba082426da36fc28ea5c3a7f27309c020793b56
parentf3e2276b09d156eb455c801aac5a07e969185f4f (diff)
c
-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)