proper swap and move operations on swap oss

This commit is contained in:
gabi
2014-10-18 18:35:48 +03:00
parent e6345e008b
commit 21065ec036
5 changed files with 41 additions and 21 deletions

View File

@@ -114,8 +114,10 @@ inline c11log::logger::logger(const std::string& logger_name, const It& begin, c
template <typename... Args>
inline c11log::details::line_logger c11log::logger::log(level::level_enum lvl, const Args&... args) {
details::line_logger l(this, lvl, should_log(lvl));
_variadic_log(l, args...);
bool msg_enabled = should_log(lvl);
details::line_logger l(this, lvl, msg_enabled);
if (msg_enabled)
_variadic_log(l, args...);
return l;
}