From b268f8815d28659f65f73d0119c4152265266fd4 Mon Sep 17 00:00:00 2001 From: rimathia Date: Fri, 13 Nov 2020 21:14:16 +0100 Subject: [PATCH] =?UTF-8?q?detail::write=20in=20one=20more=20place=20relev?= =?UTF-8?q?ant=20to=20printf=20with=20long=20argument=E2=80=A6=20(#2016)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fmt/format.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index b18303b0..b8b64a30 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -605,6 +605,14 @@ OutputIt copy_str(InputIt begin, InputIt end, OutputIt it) { return it; } +template ::value)> +buffer_appender copy_str(InputIt begin, InputIt end, + buffer_appender out) { + get_container(out).append(begin, end); + return out; +} + template inline counting_iterator copy_str(InputIt begin, InputIt end, counting_iterator it) { @@ -2055,13 +2063,6 @@ OutputIt write(OutputIt out, basic_string_view value) { return base_iterator(out, it); } -template -buffer_appender write(buffer_appender out, - basic_string_view value) { - get_container(out).append(value.begin(), value.end()); - return out; -} - template ::value && !std::is_same::value &&