mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
use static_cast<string_view> instead of ctor in logger impl
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user