mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-15 19:51:19 +00:00
Remove unnecessary alias
This commit is contained in:
parent
a8bed38952
commit
47a0eec2e8
@ -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&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf);
|
||||||
auto&& os = std::basic_ostream<Char>(&format_buf);
|
auto&& os = std::basic_ostream<Char>(&format_buf);
|
||||||
os.imbue(loc);
|
os.imbue(loc);
|
||||||
using iterator = std::ostreambuf_iterator<Char>;
|
const auto& facet = std::use_facet<std::time_put<Char>>(loc);
|
||||||
const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc);
|
|
||||||
auto end = facet.put(os, os, Char(' '), &time, format, modifier);
|
auto end = facet.put(os, os, Char(' '), &time, format, modifier);
|
||||||
if (end.failed()) FMT_THROW(format_error("failed to format time"));
|
if (end.failed()) FMT_THROW(format_error("failed to format time"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user