Don't inherit basic_format_arg from internal::Value

This commit is contained in:
Victor Zverovich
2016-12-24 07:37:33 -08:00
parent f05888692c
commit d86e51e9c1
2 changed files with 261 additions and 269 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ void format_value(fmt::Writer &, const Test &, CustomFormatter &ctx) {
TEST(UtilTest, MakeValueWithCustomFormatter) {
::Test t;
format_arg arg = fmt::internal::MakeValue<CustomFormatter>(t);
fmt::internal::Value<char> arg = fmt::internal::MakeValue<CustomFormatter>(t);
CustomFormatter ctx = {false};
fmt::MemoryWriter w;
arg.custom.format(&w, &t, &ctx);