Don't erase writer type

This commit is contained in:
Victor Zverovich
2016-12-28 07:55:33 -08:00
parent abb6996f36
commit 422236af7c
4 changed files with 20 additions and 18 deletions
+2 -2
View File
@@ -281,11 +281,11 @@ class PrintfArgFormatter : public internal::ArgFormatterBase<Char> {
}
/** Formats an argument of a custom (user-defined) type. */
void operator()(internal::CustomValue c) {
void operator()(internal::CustomValue<Char> c) {
const Char format_str[] = {'}', '\0'};
auto args = basic_format_args<basic_format_context<Char>, Char>();
basic_format_context<Char> ctx(format_str, args);
c.format(&this->writer(), c.value, &ctx);
c.format(this->writer(), c.value, &ctx);
}
};