From 99e23b41ebf058d21b854a75638bbed45789b380 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 22 Oct 2018 00:47:51 +0300 Subject: [PATCH] use static_cast instead of ctor in logger impl --- include/spdlog/details/logger_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/logger_impl.h b/include/spdlog/details/logger_impl.h index 54ae4be1..a29f7ad7 100644 --- a/include/spdlog/details/logger_impl.h +++ b/include/spdlog/details/logger_impl.h @@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg) } try { - details::log_msg log_msg(&name_, lvl, spdlog::string_view_t(msg)); + details::log_msg log_msg(&name_, lvl, static_cast(msg)); sink_it_(log_msg); } SPDLOG_CATCH_AND_HANDLE