mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
proper swap and move operations on swap oss
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user