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

@@ -65,9 +65,9 @@ struct formatter<Test, Char> {
typedef std::back_insert_iterator<basic_buffer<Char>> iterator;
auto format(Test, basic_format_context<iterator, char> &ctx)
-> decltype(ctx.begin()) {
-> decltype(ctx.out()) {
const Char *test = "test";
return std::copy_n(test, std::strlen(test), ctx.begin());
return std::copy_n(test, std::strlen(test), ctx.out());
}
};
}