From ee00f2e07d3bb7424593a6d0965f9cd163d45fa3 Mon Sep 17 00:00:00 2001 From: Charles Milette Date: Fri, 22 Apr 2022 22:52:56 -0400 Subject: [PATCH] Remove fmt_helper.h include from logger.h --- include/spdlog/logger.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index fd076052..05a40a52 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -17,7 +17,6 @@ #include #include #include -#include #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT # ifndef _WIN32 @@ -367,7 +366,7 @@ protected: memory_buf_t buf; fmt_lib::vformat_to(std::back_inserter(buf), fmt, fmt_lib::make_format_args(std::forward(args)...)); - details::log_msg log_msg(loc, name_, lvl, details::fmt_helper::to_string_view(buf)); + details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size())); log_it_(log_msg, log_enabled, traceback_enabled); } SPDLOG_LOGGER_CATCH(loc)