Fixed compile under c++20 and clang 12

This commit is contained in:
Gabi Melman 2021-07-27 01:37:15 +03:00 committed by GitHub
parent a358a38b84
commit 197c9639bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}