From 6e956f2a0b7cf490123d705f7d4e0db4c51f6bc6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 3 Aug 2019 19:02:48 +0200 Subject: [PATCH] BufferStream: Add operator<<(const char*) overload Ext2FS was relying on the presence of a (StringView) overload here and when I added a (bool) overload, it started choosing that for literals. --- AK/BufferStream.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/BufferStream.h b/AK/BufferStream.h index 703330a253d..8a255a39bcf 100644 --- a/AK/BufferStream.h +++ b/AK/BufferStream.h @@ -170,6 +170,11 @@ public: return *this; } + BufferStream& operator<<(const char* value) + { + return *this << StringView(value); + } + BufferStream& operator<<(const StringView& value) { for (ssize_t i = 0; i < value.length(); ++i)