mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
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:
parent
3c1bad99a2
commit
6e956f2a0b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue