From 35a996490200126e72775398fa3d6daa0ec4f435 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 13 Nov 2024 00:01:06 +0100 Subject: Introduce byte, use span on io Writer --- asl/format.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'asl/format.hpp') 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 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(s, len))); } }; -- cgit