mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 09:09:35 +08:00
Use std::move
for old_logger
in set_default_logger
.
This commit is contained in:
@@ -379,7 +379,7 @@ void replace_default_logger_example() {
|
||||
spdlog::set_level(spdlog::level::trace);
|
||||
spdlog::debug("This message should be displayed..");
|
||||
|
||||
spdlog::set_default_logger(old_logger);
|
||||
spdlog::set_default_logger(std::move(old_logger));
|
||||
}
|
||||
|
||||
// Mapped Diagnostic Context (MDC) is a map that stores key-value pairs (string values) in thread
|
||||
|
Reference in New Issue
Block a user