pass by ref bugfix

This commit is contained in:
gabi
2014-10-18 19:03:41 +03:00
parent 21065ec036
commit b36a803469
3 changed files with 5 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ public:
protected:
virtual void _sink_it(const details::log_msg& msg) override
{
auto buf = msg.formatted.buf();
auto& buf = msg.formatted.buf();
_ostream.write(buf.data(), buf.size());
}
std::ostream& _ostream;