summaryrefslogtreecommitdiff
path: root/libcult/cult/trace/stream.txx
diff options
context:
space:
mode:
Diffstat (limited to 'libcult/cult/trace/stream.txx')
-rw-r--r--libcult/cult/trace/stream.txx19
1 files changed, 19 insertions, 0 deletions
diff --git a/libcult/cult/trace/stream.txx b/libcult/cult/trace/stream.txx
new file mode 100644
index 0000000..1ac20ed
--- /dev/null
+++ b/libcult/cult/trace/stream.txx
@@ -0,0 +1,19 @@
+// file : cult/trace/stream.txx
+// author : Boris Kolpackov <boris@kolpackov.net>
+// copyright : Copyright (c) 2005-2010 Boris Kolpackov
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+namespace Cult
+{
+ namespace Trace
+ {
+ template <typename T>
+ inline
+ Record&
+ operator<< (Stream::Mediator const& mc, T const& arg)
+ {
+ Stream::Mediator& m (const_cast<Stream::Mediator&> (mc));
+ return m.r_ << arg;
+ }
+ }
+}