Fixed logger::log with std::format under msvc

This commit is contained in:
Gabi Melman 2023-09-16 16:53:39 +03:00 committed by gabime
parent d8164fe398
commit ce6bccb194

View File

@ -81,14 +81,17 @@ public:
{
if (should_log(lvl))
{
log_with_format_(loc, lvl, fmt, std::forward<Args>(args)...);
log_with_format_(loc, lvl, fmt.get(), std::forward<Args>(args)...);
}
}
template<typename... Args>
void log(level::level_enum lvl, format_string_t<Args...> fmt, Args &&...args)
{
log(source_loc{}, lvl, fmt, std::forward<Args>(args)...);
if (should_log(lvl))
{
log_with_format_(source_loc{}, lvl, fmt.get(), std::forward<Args>(args)...);
}
}
template<typename S, typename = is_convertible_to_sv<S>, typename... Args>