Add sprintf overload for wide strings

and fix an issue in formatting user-defined objects.
Thanks to @ScottLangham
This commit is contained in:
vitaut
2015-09-18 16:26:41 -07:00
parent 79d8f59906
commit ef710dee6c
4 changed files with 27 additions and 5 deletions

View File

@@ -526,7 +526,8 @@ class PrintfArgFormatter :
void visit_custom(Arg::CustomValue c) {
BasicFormatter<Char> formatter(ArgList(), this->writer());
const char *format = "}";
const Char format_str[] = {'}', 0};
const Char *format = format_str;
c.format(&formatter, c.value, &format);
}
};