summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-12 13:47:44 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-12 13:47:44 +0100
commitee720ed3bcc18fad43127d27e9d57781ecc91393 (patch)
tree1d392d5d5613bd6fa2d6b7572dc4c1744139605a /src/os
parent96462e6b5be917a5146eaae62234432f1030898f (diff)
prototest: json serialization
Diffstat (limited to 'src/os')
-rw-r--r--src/os/object/outputstream.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/os/object/outputstream.cc b/src/os/object/outputstream.cc
index 1ce260e..4359874 100644
--- a/src/os/object/outputstream.cc
+++ b/src/os/object/outputstream.cc
@@ -140,6 +140,16 @@ OutputStream & OutputStream::operator<<(OutputStream & (*fkt) (OutputStream &))
return fkt(*this);
}
+#ifdef WITH_OSTREAM
+OutputStream & OutputStream::operator<<(std::string s)
+{
+ for (auto c : s) {
+ put(c);
+ }
+ return *this;
+}
+#endif
+
void OutputStream::setBase(uint8_t b)
{
if (b == 2 || b == 8 || b == 10 || b == 16) {