fix #2118: FMT_COMPILE did not work with tm formatter
This commit is contained in:
parent
b0b56b4379
commit
d2d01c9c38
@ -423,7 +423,8 @@ template <typename Char> struct formatter<std::tm, Char> {
|
||||
}
|
||||
|
||||
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;
|
||||
tm_format.append(specs.begin(), specs.end());
|
||||
tm_format.push_back('\0');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user