Make buffer_context an alias template

This commit is contained in:
Victor Zverovich
2019-06-02 18:28:49 -07:00
parent ec6651087d
commit d54e64b3c8
8 changed files with 50 additions and 57 deletions
+2 -2
View File
@@ -239,14 +239,14 @@ class prepared_format {
}
template <std::size_t SIZE = inline_buffer_size>
inline typename buffer_context<char_type>::type::iterator format_to(
inline typename buffer_context<char_type>::iterator format_to(
basic_memory_buffer<char_type, SIZE>& buf, const Args&... args) const {
typedef back_insert_range<internal::buffer<char_type>> range;
return this->vformat_to(range(buf), make_args_checked(format_, args...));
}
private:
typedef typename buffer_context<char_type>::type context;
typedef buffer_context<char_type> context;
template <typename Range>
typename context::iterator vformat_to(Range out,