diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 16:40:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 16:40:27 +0200 |
commit | 150948c5cd962237436a81c61a81a9cbb453f2e4 (patch) | |
tree | a8378fdea28420a35e2b3ef658a8d5ba65ccf8b1 /serialize/binary-serializer.hpp | |
parent | ad4b46dff41edb27b5e5d5c3fa6559182071a4a7 (diff) |
b
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); |