mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Fixed daily_file_sink compilation under c++20
This commit is contained in:
parent
9c90fe8264
commit
d38f89cae8
@ -53,7 +53,7 @@ struct daily_filename_format_calculator
|
||||
#if defined(_MSC_VER) && defined(SPDLOG_WCHAR_FILENAMES) // for some reason msvc doesnt allow fmt::runtime(..) with wchar here
|
||||
return fmt::format(fmt_filename, now_tm);
|
||||
#else
|
||||
return fmt::format(fmt_filename, now_tm);
|
||||
return fmt::format(fmt::runtime(fmt_filename), now_tm);
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user