Fix gcc 4.4 build

This commit is contained in:
Victor Zverovich 2019-05-15 10:20:51 -07:00
parent 5ee0804631
commit a5ffa735db

View File

@ -6,7 +6,7 @@
// For the license information refer to format.h. // For the license information refer to format.h.
#include <array> #include <array>
#include <limits> #include <climits>
#include "fmt/format.h" #include "fmt/format.h"
#include "gmock.h" #include "gmock.h"
@ -25,7 +25,7 @@ struct scan_args {
template <size_t N> template <size_t N>
scan_args(const std::array<scan_arg, N>& store) scan_args(const std::array<scan_arg, N>& store)
: size(N), data(store.data()) { : size(N), data(store.data()) {
static_assert(N < std::numeric_limits<int>::max(), "too many arguments"); static_assert(N < INT_MAX, "too many arguments");
} }
}; };