summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
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) {