summaryrefslogtreecommitdiff
path: root/asl/format.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-11-13 00:01:06 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit35a996490200126e72775398fa3d6daa0ec4f435 (patch)
tree065bc639ff3a2bd4e06e63b2a6c6255f509ddbb0 /asl/format.hpp
parentac47be51b79f4c3e49656870e135453eefe759ea (diff)
Introduce byte, use span<byte> on io Writer
Diffstat (limited to 'asl/format.hpp')
-rw-r--r--asl/format.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/asl/format.hpp b/asl/format.hpp
index eb8379a..666e325 100644
--- a/asl/format.hpp
+++ b/asl/format.hpp
@@ -37,7 +37,6 @@ struct type_erased_arg
{}
};
-// @Todo Use span
void format(writer*, const char* fmt, span<const type_erased_arg> args);
} // namespace internals
@@ -54,7 +53,7 @@ public:
// @Todo Use string_view
constexpr void write(const char* s, isize_t len)
{
- m_writer->write(s, len);
+ m_writer->write(as_bytes(span<const char>(s, len)));
}
};