Make format spec parsing context-independent

This commit is contained in:
Victor Zverovich committed 2017-07-30 08:58:24 -07:00
1 parent 45911770c5
commit 1102d46508
3 files changed
+205 -98

No files matched your search

+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);
}