diff options
author | Victor Zverovich <viz@meta.com> | 2023-12-29 09:59:55 -0800 |
---|---|---|
committer | Victor Zverovich <viz@meta.com> | 2023-12-29 09:59:55 -0800 |
commit | 47a0eec2e8a80a004e66aa571506d5ae364304b7 (patch) | |
tree | 01510f3e10003404c52eab297e068c6c5085db77 | |
parent | a8bed38952c9b0400a9d53e02896a910cc90754d (diff) | |
download | fmtlib-47a0eec2e8a80a004e66aa571506d5ae364304b7.tar.gz |
Remove unnecessary alias
-rw-r--r-- | include/fmt/chrono.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<Char>& buf, const std::tm& time, auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf); auto&& os = std::basic_ostream<Char>(&format_buf); os.imbue(loc); - using iterator = std::ostreambuf_iterator<Char>; - const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc); + const auto& facet = std::use_facet<std::time_put<Char>>(loc); auto end = facet.put(os, os, Char(' '), &time, format, modifier); if (end.failed()) FMT_THROW(format_error("failed to format time")); } |