mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
use static_cast<string_view> instead of ctor in logger impl
This commit is contained in:
parent
cadb3d7da2
commit
99e23b41eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user