Fix compilation errors on gcc 4.4

This commit is contained in:
Victor Zverovich
2018-03-03 14:04:59 -08:00
parent 1d2adef28d
commit 418659adbe
8 changed files with 241 additions and 192 deletions

View File

@@ -44,7 +44,7 @@
#undef max
template <typename T>
struct ValueExtractor {
struct ValueExtractor: fmt::internal::function<T> {
T operator()(T value) {
return value;
}
@@ -59,7 +59,7 @@ struct ValueExtractor {
TEST(FormatTest, ArgConverter) {
long long value = std::numeric_limits<long long>::max();
auto arg = fmt::internal::make_arg<fmt::context>(value);
visit(fmt::internal::ArgConverter<long long, fmt::context>(arg, 'd'), arg);
visit(fmt::internal::arg_converter<long long, fmt::context>(arg, 'd'), arg);
EXPECT_EQ(value, visit(ValueExtractor<long long>(), arg));
}