fix #2118: FMT_COMPILE did not work with tm formatter

This commit is contained in:
summivox 2021-01-27 22:54:42 -08:00
parent b0b56b4379
commit d2d01c9c38

View File

@ -423,7 +423,8 @@ template <typename Char> struct formatter<std::tm, Char> {
} }
template <typename FormatContext> template <typename FormatContext>
auto format(const std::tm& tm, FormatContext& ctx) -> decltype(ctx.out()) { auto format(const std::tm& tm, FormatContext& ctx) const
-> decltype(ctx.out()) {
basic_memory_buffer<Char> tm_format; basic_memory_buffer<Char> tm_format;
tm_format.append(specs.begin(), specs.end()); tm_format.append(specs.begin(), specs.end());
tm_format.push_back('\0'); tm_format.push_back('\0');