Implement formatting of objects with (s)printf.

This commit is contained in:
vitaut
2015-09-08 08:36:20 -07:00
parent 59155abbf3
commit 79d8f59906
4 changed files with 23 additions and 13 deletions
+6
View File
@@ -523,6 +523,12 @@ class PrintfArgFormatter :
}
*out = static_cast<Char>(value);
}
void visit_custom(Arg::CustomValue c) {
BasicFormatter<Char> formatter(ArgList(), this->writer());
const char *format = "}";
c.format(&formatter, c.value, &format);
}
};
} // namespace internal
} // namespace fmt