mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-27 20:21:45 +01:00
Simplify API
This commit is contained in:
@@ -55,9 +55,8 @@ struct ValueExtractor {
|
||||
};
|
||||
|
||||
TEST(FormatTest, ArgConverter) {
|
||||
using fmt::format_arg;
|
||||
fmt::LongLong value = std::numeric_limits<fmt::LongLong>::max();
|
||||
format_arg arg = fmt::internal::make_arg<fmt::context>(value);
|
||||
auto arg = fmt::internal::make_arg<fmt::context>(value);
|
||||
visit(fmt::internal::ArgConverter<
|
||||
fmt::LongLong, fmt::context>(arg, 'd'), arg);
|
||||
EXPECT_EQ(value, visit(ValueExtractor<fmt::LongLong>(), arg));
|
||||
|
||||
Reference in New Issue
Block a user