Added subseconds=0 as default for format(tm…), because tests fail otherwise
This commit is contained in:
parent
ac6dd9f6de
commit
10591ac477
@ -432,7 +432,7 @@ template <typename Char> struct formatter<std::tm, Char> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(const std::tm& tm, FormatContext& ctx, int subseconds) const
|
auto format(const std::tm& tm, FormatContext& ctx, int subseconds = 0) const
|
||||||
-> decltype(ctx.out()) {
|
-> 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());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user