From bf870ae3d15c576bdb78e5c0ce1106fab9f0275a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 9 Aug 2024 07:10:15 -0700 Subject: [PATCH] Fix back_inserter lookup for non-std containers --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 86f3f5ae..9906b43d 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -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.