Add an overload of write for buffer_appender

This commit is contained in:
Victor Zverovich
2020-07-11 07:33:25 -07:00
parent d870468159
commit e4f57bfd7f
2 changed files with 9 additions and 2 deletions

View File

@@ -1760,6 +1760,13 @@ OutputIt write(OutputIt out, basic_string_view<Char> value) {
return base_iterator(out, it);
}
template <typename Char>
buffer_appender<Char> write(buffer_appender<Char> out,
basic_string_view<Char> value) {
get_container(out).append(value.begin(), value.end());
return out;
}
template <typename Char, typename OutputIt, typename T,
FMT_ENABLE_IF(is_integral<T>::value &&
!std::is_same<T, bool>::value &&