Improve handling of format strings in custom arguments.

This commit is contained in:
Victor Zverovich
2014-08-29 07:23:54 -07:00
parent 3947a7a98c
commit 271fa8c908
3 changed files with 17 additions and 27 deletions

View File

@@ -238,7 +238,8 @@ TEST(ArgTest, MakeArg) {
EXPECT_EQ(&t, arg.custom.value);
fmt::Writer w;
fmt::BasicFormatter<char> formatter(w);
arg.custom.format(&formatter, &t, "}");
const char *s = "}";
arg.custom.format(&formatter, &t, &s);
EXPECT_EQ("test", w.str());
}