Fix log behavior for templated output operators

This commit is contained in:
Nikita Lisitsa 2020-09-23 13:15:18 +03:00
parent 5830977e45
commit 8ece2e1884

View file

@ -30,7 +30,7 @@ namespace psemek::log
template <typename T>
log_stream & operator << (T const & x)
{
os_ << x;
static_cast<std::ostream &>(os_) << x;
return *this;
}