Fixed clang c++20 compile

This commit is contained in:
gabime 2021-06-26 17:59:08 +03:00
parent a5f5ff70e0
commit 0fdb545d8c

View File

@ -50,7 +50,7 @@ struct daily_filename_format_calculator
{ {
// generate fmt datetime format string, e.g. {:%Y-%m-%d}. // generate fmt datetime format string, e.g. {:%Y-%m-%d}.
filename_t fmt_filename = fmt::format(SPDLOG_FILENAME_T("{{:{}}}"), filename); filename_t fmt_filename = fmt::format(SPDLOG_FILENAME_T("{{:{}}}"), filename);
return fmt::format(fmt_filename, now_tm); return fmt::format(fmt::runtime(fmt_filename), now_tm);
} }
}; };