aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-09-05 21:28:02 +0000
committerMike Buland <eichlan@xagasoft.com>2012-09-05 21:28:02 +0000
commit7d850e5e8d79c9ca4485adf5602d3002ac1cae4e (patch)
tree48bfddc2065656e7dba0fc4f2208638cccf0cb1f /src/stable
parent50b89841463d7724e7e20dad19da8bd61d49a06c (diff)
downloadlibbu++-7d850e5e8d79c9ca4485adf5602d3002ac1cae4e.tar.gz
libbu++-7d850e5e8d79c9ca4485adf5602d3002ac1cae4e.tar.bz2
libbu++-7d850e5e8d79c9ca4485adf5602d3002ac1cae4e.tar.xz
libbu++-7d850e5e8d79c9ca4485adf5602d3002ac1cae4e.zip
Formatters can now be cast as Streams, or you can get the Stream out manually.
Diffstat (limited to 'src/stable')
-rw-r--r--src/stable/formatter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stable/formatter.h b/src/stable/formatter.h
index 9b9e501..d92a53b 100644
--- a/src/stable/formatter.h
+++ b/src/stable/formatter.h
@@ -247,6 +247,9 @@ namespace Bu
247 247
248 void doFlush(); 248 void doFlush();
249 249
250 Stream &getStream() { return rStream; }
251 operator Stream&() { return rStream; }
252
250 private: 253 private:
251 Stream &rStream; 254 Stream &rStream;
252 Fmt fLast; 255 Fmt fLast;