MakeArg -> make_arg
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user