use static_cast<string_view> instead of ctor in logger impl

This commit is contained in:
gabime 2018-10-22 00:47:51 +03:00
parent cadb3d7da2
commit 99e23b41eb
1 changed files with 1 additions and 1 deletions

View File

@ -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<spdlog::string_view_t>(msg));
sink_it_(log_msg);
}
SPDLOG_CATCH_AND_HANDLE