diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index be2bb073..2a78a8b3 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -432,7 +432,7 @@ template struct formatter { } template - 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()) { basic_memory_buffer tm_format; tm_format.append(specs.begin(), specs.end());