Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING

This commit is contained in:
John Armstrong
2022-05-18 16:30:36 -07:00
parent 0d8197cc9d
commit 799802f93b
5 changed files with 9 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ inline void pad2(int n, memory_buf_t &dest)
}
else // unlikely, but just in case, let fmt deal with it
{
fmt_lib::format_to(std::back_inserter(dest), "{:02}", n);
fmt_lib::format_to(std::back_inserter(dest), SPDLOG_FMT_STRING("{:02}"), n);
}
}