Merge value and MakeValue

This commit is contained in:
Victor Zverovich
2016-12-30 09:25:01 -08:00
parent acd1811c50
commit b2a0d8914a
2 changed files with 41 additions and 47 deletions

View File

@@ -423,8 +423,7 @@ void format_value(fmt::Writer &, const Test &, CustomContext &ctx) {
TEST(UtilTest, MakeValueWithCustomFormatter) {
::Test t;
fmt::internal::value<CustomContext> arg =
fmt::internal::MakeValue<CustomContext>(t);
fmt::internal::value<CustomContext> arg(t);
CustomContext ctx = {false};
fmt::MemoryWriter w;
arg.custom.format(w, &t, &ctx);