MakeArg -> make_arg

This commit is contained in:
Victor Zverovich
2016-12-27 07:55:44 -08:00
parent ee1651ce07
commit abb6996f36
6 changed files with 30 additions and 27 deletions

View File

@@ -57,7 +57,7 @@ struct ValueExtractor {
TEST(FormatTest, ArgConverter) {
using fmt::format_arg;
fmt::LongLong value = std::numeric_limits<fmt::LongLong>::max();
format_arg arg = fmt::internal::MakeArg<fmt::format_context>(value);
format_arg arg = fmt::internal::make_arg<fmt::format_context>(value);
visit(fmt::internal::ArgConverter<fmt::LongLong, char>(arg, 'd'), arg);
EXPECT_EQ(value, visit(ValueExtractor<fmt::LongLong>(), arg));
}

View File

@@ -69,7 +69,7 @@ TEST(OStreamTest, CustomArg) {
fmt::format_context ctx("}", fmt::format_args());
fmt::FormatSpec spec;
TestArgFormatter af(writer, ctx, spec);
visit(af, fmt::internal::MakeArg<fmt::format_context>(TestEnum()));
visit(af, fmt::internal::make_arg<fmt::format_context>(TestEnum()));
EXPECT_EQ("TestEnum", writer.str());
}

View File

@@ -75,8 +75,7 @@ void format_value(fmt::BasicWriter<Char> &w, Test,
template <typename Char, typename T>
basic_format_arg<Char> make_arg(const T &value) {
typedef fmt::internal::MakeArg< fmt::basic_format_context<Char> > MakeArg;
return MakeArg(value);
return fmt::internal::make_arg< fmt::basic_format_context<Char> >(value);
}
} // namespace