From 197c9639bbc9e5418f375ebbbad884285c3e1eae Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 27 Jul 2021 01:37:15 +0300 Subject: [PATCH] Fixed compile under c++20 and clang 12 --- include/spdlog/details/fmt_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index dcbee10a..01b2aa4d 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -55,7 +55,7 @@ inline void pad2(int n, memory_buf_t &dest) } else // unlikely, but just in case, let fmt deal with it { - fmt::format_to(std::back_inserter(dest), "{:02}", n); + fmt::format_to(std::back_inserter(dest), SPDLOG_FMT_RUNTIME("{:02}"), n); } }