Fix back_inserter lookup for non-std containers

This commit is contained in:
Victor Zverovich 2024-08-09 07:10:15 -07:00
parent c98518351e
commit bf870ae3d1

View File

@ -1095,7 +1095,7 @@ class iterator_buffer<
explicit iterator_buffer(OutputIt out, size_t = 0) explicit iterator_buffer(OutputIt out, size_t = 0)
: iterator_buffer(get_container(out)) {} : 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. // A buffer that counts the number of code units written discarding the output.