Skip to content

Commit

Permalink
include/fmt/format.h: int_writer: removed unnecessary iterator type r…
Browse files Browse the repository at this point in the history
…e-declaration (prevents shadow-waringing in clang)
  • Loading branch information
martinwuehrer committed Aug 12, 2020
1 parent 4b69c78 commit 412a658
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,6 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
make_checked(p, s.size()));
}
if (prefix_size != 0) p[-1] = static_cast<Char>('-');
using iterator = remove_reference_t<decltype(reserve(out, 0))>;
auto data = buffer.data();
out = write_padded<align::right>(out, specs, size, size, [=](iterator it) {
return copy_str<Char>(data, data + size, it);
Expand Down

0 comments on commit 412a658

Please sign in to comment.