summaryrefslogtreecommitdiffhomepage
path: root/serialize/binary-serializer.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:42:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:42:07 +0100
commit4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch)
treec0a5d21b8e19fbb60c286faec8e302e6f32b6679 /serialize/binary-serializer.cpp
parent32b8c22828315292857e2cd9909fba620f30ff70 (diff)
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'serialize/binary-serializer.cpp')
-rw-r--r--serialize/binary-serializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/binary-serializer.cpp b/serialize/binary-serializer.cpp
index 12163792..ddd8b401 100644
--- a/serialize/binary-serializer.cpp
+++ b/serialize/binary-serializer.cpp
@@ -11,7 +11,7 @@ constexpr bool test1()
{
constexpr std::array<char, 4> bytes = { 1, 2, 3, 4 };
auto x = binary_reader(bytes.cbegin(), bytes.cend());
- return x.read<std::uint32_t>() == 67305985;
+ return x.read<uint32_t>() == 67305985;
}
static_assert(test1());
@@ -20,7 +20,7 @@ constexpr bool test2()
{
constexpr std::array<char, 4> bytes = { 4, 3, 2, 1 };
auto r = binary_reader(bytes.cbegin(), bytes.cend());
- const auto x = r.read<std::uint32_t>();
+ const auto x = r.read<uint32_t>();
r.assert_end();
return x == 16909060;
}