Skip to content

Commit 3d40e0e

Browse files
chore: add missing operator<< for AsAsciiHelper (#919)
Add missing operator<< for AsAsciiHelper
1 parent a9df781 commit 3d40e0e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

infra/stream/OutputStream.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ namespace infra
357357
return stream;
358358
}
359359

360+
infra::TextOutputStream& operator<<(TextOutputStream&& stream, const AsAsciiHelper& asAsciiHelper)
361+
{
362+
return stream << asAsciiHelper;
363+
}
364+
360365
AsHexHelper::AsHexHelper(ConstByteRange data)
361366
: data(data)
362367
{}

infra/stream/OutputStream.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ namespace infra
254254
explicit AsAsciiHelper(infra::ConstByteRange data);
255255

256256
friend infra::TextOutputStream& operator<<(infra::TextOutputStream& stream, const AsAsciiHelper& asAsciiHelper);
257+
friend infra::TextOutputStream& operator<<(TextOutputStream&& stream, const AsAsciiHelper& asAsciiHelper);
257258

258259
private:
259260
infra::ConstByteRange data;

0 commit comments

Comments
 (0)