CharPtr -> pointer_type and move to writer

This commit is contained in:
Victor Zverovich
2017-09-04 11:58:14 -07:00
parent 0fbd846561
commit 44a26e5e21
2 changed files with 33 additions and 35 deletions
+2 -2
View File
@@ -245,8 +245,8 @@ class printf_arg_formatter : public internal::arg_formatter_base<Char> {
basic_writer<Char> &w = this->writer();
if (fmt_spec.type_ && fmt_spec.type_ != 'c')
w.write_int(value, fmt_spec);
typedef typename basic_writer<Char>::CharPtr CharPtr;
CharPtr out = CharPtr();
typedef typename basic_writer<Char>::pointer_type pointer_type;
pointer_type out = pointer_type();
if (fmt_spec.width_ > 1) {
Char fill = ' ';
out = w.grow_buffer(fmt_spec.width_);