summaryrefslogtreecommitdiffhomepage
path: root/serialize/binary-writer.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-29 16:49:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-29 16:49:12 +0200
commit4c982b2ffe99f5dee70657424161de9541e00a21 (patch)
treefd46a497140aca5c4c6d9e994dca1daa09aa8ccc /serialize/binary-writer.hpp
parent32021bc251bf110338f28271e87964578cf07e1e (diff)
serialize: use std::bit_cast
Diffstat (limited to 'serialize/binary-writer.hpp')
-rw-r--r--serialize/binary-writer.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/serialize/binary-writer.hpp b/serialize/binary-writer.hpp
index 02fe427d..13580eb0 100644
--- a/serialize/binary-writer.hpp
+++ b/serialize/binary-writer.hpp
@@ -8,8 +8,7 @@ namespace floormat::Serialize {
template<std::output_iterator<char> It>
struct binary_writer final {
explicit constexpr binary_writer(It it) noexcept;
- template<integer T> constexpr void write(T x) noexcept;
- template<std::floating_point T> void write(T x) noexcept;
+ template<serializable T> constexpr void write(T x) noexcept;
constexpr void write_asciiz_string(StringView str) noexcept;
constexpr std::size_t bytes_written() const noexcept { return _bytes_written; }