context_base::begin -> out

This commit is contained in:
Victor Zverovich
2018-04-22 09:16:32 -07:00
parent b1f68c43b5
commit fa9066fe3e
7 changed files with 29 additions and 28 deletions

View File

@@ -112,12 +112,12 @@ struct formatter<T, Char,
: formatter<basic_string_view<Char>, Char> {
template <typename Context>
auto format(const T &value, Context &ctx) -> decltype(ctx.begin()) {
auto format(const T &value, Context &ctx) -> decltype(ctx.out()) {
basic_memory_buffer<Char> buffer;
internal::format_value(buffer, value);
basic_string_view<Char> str(buffer.data(), buffer.size());
formatter<basic_string_view<Char>, Char>::format(str, ctx);
return ctx.begin();
return ctx.out();
}
};