diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-27 19:46:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-27 19:46:44 +0200 |
commit | fd19f2e15313fba83e971f49092f5511ac610584 (patch) | |
tree | e5c75e247db4b89627ffbfced0024d936d825eac /serialize/binary-serializer.cpp | |
parent | f544cc4c469bd3073e6d78ca05ee70475dfa20cc (diff) |
more serializer work
Diffstat (limited to 'serialize/binary-serializer.cpp')
-rw-r--r-- | serialize/binary-serializer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/serialize/binary-serializer.cpp b/serialize/binary-serializer.cpp index 1a6da0fd..2444b403 100644 --- a/serialize/binary-serializer.cpp +++ b/serialize/binary-serializer.cpp @@ -77,4 +77,7 @@ static_assert(test2()); using test3 = binary_reader<std::array<char, 1>::iterator>; static_assert(std::is_same_v<test3&, decltype( std::declval<test3&>() >> std::declval<int&>() )>); +using test4 = binary_writer<std::array<char, sizeof(int)>::iterator>; +static_assert(std::is_same_v<test4&, decltype( std::declval<test4&>() << int() )>); + } // namespace floormat::Serialize |