Skip to content

Commit

Permalink
Fix back_inserter lookup for non-std containers
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 9, 2024
1 parent c985183 commit bf870ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ class iterator_buffer<
explicit iterator_buffer(OutputIt out, size_t = 0)
: iterator_buffer(get_container(out)) {}

auto out() -> OutputIt { return back_inserter(container_); }
auto out() -> OutputIt { return OutputIt(container_); }
};

// A buffer that counts the number of code units written discarding the output.
Expand Down

0 comments on commit bf870ae

Please sign in to comment.