Commit 99e23b41 authored by gabime's avatar gabime

use static_cast<string_view> instead of ctor in logger impl

parent cadb3d7d
...@@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg) ...@@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
} }
try try
{ {
details::log_msg log_msg(&name_, lvl, spdlog::string_view_t(msg)); details::log_msg log_msg(&name_, lvl, static_cast<spdlog::string_view_t>(msg));
sink_it_(log_msg); sink_it_(log_msg);
} }
SPDLOG_CATCH_AND_HANDLE SPDLOG_CATCH_AND_HANDLE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment