From d38f89cae89e433171e50a4d83babaf2c103d526 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 20 Jul 2021 15:02:39 +0300 Subject: [PATCH] Fixed daily_file_sink compilation under c++20 --- include/spdlog/sinks/daily_file_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/daily_file_sink.h b/include/spdlog/sinks/daily_file_sink.h index e6f67475..4b9062d5 100644 --- a/include/spdlog/sinks/daily_file_sink.h +++ b/include/spdlog/sinks/daily_file_sink.h @@ -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 } };