From 5ba95f6816bff54b67dde2e39e0072d4fbb4590e Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Mon, 19 Jul 2021 03:46:01 +0300 Subject: [PATCH] Update logger.h --- include/spdlog/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 17851952..f6e32d3d 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -329,7 +329,7 @@ protected: { memory_buf_t buf; // little bit faster than fmt::format_to(std::back_inserter(buf), fmt, std::forward(args)...); - fmt::detail::vformat_to(buf, fmt::to_string_view(fmt), fmt::make_format_args(args...), {}); + fmt::detail::vformat_to(buf, fmt::string_view(fmt), fmt::make_format_args(args...), {}); details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size())); log_it_(log_msg, log_enabled, traceback_enabled); }