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.
This commit is contained in:
Andreas Kling 2019-08-03 19:02:48 +02:00
parent 3c1bad99a2
commit 6e956f2a0b

View file

@ -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)