Fix warnings caused by usage of deprecated functionality

This commit is contained in:
Elias Kosunen authored and Victor Zverovich committed 2019-02-02 05:48:39 -08:00
1 parent c3268f4e50
commit 7fbbfed8c6
4 files changed
+34 -11

No files matched your search

+4 -3
View File
@@ -116,9 +116,10 @@ template <typename T> struct ValueExtractor : fmt::internal::function<T> {
TEST(FormatTest, ArgConverter) {
long long value = std::numeric_limits<long long>::max();
auto arg = fmt::internal::make_arg<fmt::format_context>(value);
visit(fmt::internal::arg_converter<long long, fmt::format_context>(arg, 'd'),
arg);
EXPECT_EQ(value, visit(ValueExtractor<long long>(), arg));
fmt::visit_format_arg(
fmt::internal::arg_converter<long long, fmt::format_context>(arg, 'd'),
arg);
EXPECT_EQ(value, fmt::visit_format_arg(ValueExtractor<long long>(), arg));
}
TEST(FormatTest, FormatNegativeNaN) {