mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00: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;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BufferStream& operator<<(const char* value)
|
||||||
|
{
|
||||||
|
return *this << StringView(value);
|
||||||
|
}
|
||||||
|
|
||||||
BufferStream& operator<<(const StringView& value)
|
BufferStream& operator<<(const StringView& value)
|
||||||
{
|
{
|
||||||
for (ssize_t i = 0; i < value.length(); ++i)
|
for (ssize_t i = 0; i < value.length(); ++i)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue