Make format spec parsing context-independent

This commit is contained in:
Victor Zverovich
2017-07-30 08:58:24 -07:00
parent 45911770c5
commit 1102d46508
3 changed files with 205 additions and 98 deletions
+1 -2
View File
@@ -1239,8 +1239,7 @@ TEST(FormatterTest, FormatCustom) {
class Answer {};
template <typename Char>
void format_value(fmt::basic_buffer<Char> &buf, Answer, fmt::context &ctx) {
void format_value(fmt::buffer &buf, Answer, fmt::context &ctx) {
fmt::formatter<int> f(ctx);
f.format(buf, 42, ctx);
}