diff options
Diffstat (limited to 'serialize/binary-serializer.hpp')
-rw-r--r-- | serialize/binary-serializer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/binary-serializer.hpp b/serialize/binary-serializer.hpp index f277aae9..c95bedef 100644 --- a/serialize/binary-serializer.hpp +++ b/serialize/binary-serializer.hpp @@ -31,13 +31,13 @@ concept serializable = requires(T x) { }; template<typename T> -constexpr inline T maybe_byteswap(T x) noexcept +constexpr CORRADE_ALWAYS_INLINE T maybe_byteswap(T x) noexcept { return x; } template<integer T> -constexpr inline T maybe_byteswap(T x) noexcept +constexpr CORRADE_ALWAYS_INLINE T maybe_byteswap(T x) noexcept { if constexpr(std::endian::native == std::endian::big) return std::byteswap(x); |