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 &&