diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 6a3d38ff..5a31930e 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -409,8 +409,7 @@ inline void do_write(buffer& buf, const std::tm& time, auto&& format_buf = formatbuf>(buf); auto&& os = std::basic_ostream(&format_buf); os.imbue(loc); - using iterator = std::ostreambuf_iterator; - const auto& facet = std::use_facet>(loc); + const auto& facet = std::use_facet>(loc); auto end = facet.put(os, os, Char(' '), &time, format, modifier); if (end.failed()) FMT_THROW(format_error("failed to format time")); }