summaryrefslogtreecommitdiff
path: root/asl/format.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/format.hpp')
-rw-r--r--asl/format.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/asl/format.hpp b/asl/format.hpp
index 7cf3917..9504701 100644
--- a/asl/format.hpp
+++ b/asl/format.hpp
@@ -77,11 +77,16 @@ void format(Writer* w, string_view fmt, const Args&... args)
template<isize_t N>
void AslFormat(Formatter& f, const char (&str)[N])
{
- f.write(str, N - 1);
+ f.write(string_view(str, N - 1));
}
void AslFormat(Formatter& f, const char* str);
+inline void AslFormat(Formatter& f, string_view sv)
+{
+ f.write(sv);
+}
+
void AslFormat(Formatter& f, float);
void AslFormat(Formatter& f, double);