summaryrefslogtreecommitdiff
path: root/libcult/cult/trace/stream.txx
blob: 1ac20edfe231129c77cc52f52f6abbff0d3890d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
    }
  }
}