diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-12 22:48:52 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-12 22:48:52 -0700 |
| commit | 7069fbbebc750a7c8a64adc8c30269527cbec9bd (patch) | |
| tree | 94d08f8fd3f04be1167f274c7aab37d0100a693b /toolsrc/src/StatusParagraphs.cpp | |
| parent | 7326b6c64dc6b04b6d8512f13dddf67bf7498bf1 (diff) | |
| download | vcpkg-7069fbbebc750a7c8a64adc8c30269527cbec9bd.tar.gz vcpkg-7069fbbebc750a7c8a64adc8c30269527cbec9bd.zip | |
[vcpkg] Remove+indirect nearly all uses of iostreams
Diffstat (limited to 'toolsrc/src/StatusParagraphs.cpp')
| -rw-r--r-- | toolsrc/src/StatusParagraphs.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/toolsrc/src/StatusParagraphs.cpp b/toolsrc/src/StatusParagraphs.cpp index 59e6ee331..132b7d5d4 100644 --- a/toolsrc/src/StatusParagraphs.cpp +++ b/toolsrc/src/StatusParagraphs.cpp @@ -59,13 +59,12 @@ namespace vcpkg return ptr; } - std::ostream& vcpkg::operator<<(std::ostream& os, const StatusParagraphs& l) + void serialize(const StatusParagraphs& pghs, std::string& out_str) { - for (auto& pgh : l.paragraphs) + for (auto& pgh : pghs.paragraphs) { - os << *pgh; - os << "\n"; + serialize(*pgh, out_str); + out_str.push_back('\n'); } - return os; } } |
