diff options
Diffstat (limited to 'serialize/binary-serializer.cpp')
-rw-r--r-- | serialize/binary-serializer.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/serialize/binary-serializer.cpp b/serialize/binary-serializer.cpp index 08606768..1a6da0fd 100644 --- a/serialize/binary-serializer.cpp +++ b/serialize/binary-serializer.cpp @@ -74,13 +74,7 @@ static constexpr bool test2() } static_assert(test2()); -template<typename T> -[[maybe_unused]] static constexpr T maybe_byteswap(T x) -{ - if constexpr(std::endian::native == std::endian::big) - return std::byteswap(x); - else - return x; -} +using test3 = binary_reader<std::array<char, 1>::iterator>; +static_assert(std::is_same_v<test3&, decltype( std::declval<test3&>() >> std::declval<int&>() )>); } // namespace floormat::Serialize |