mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix gcc 4.4 build
This commit is contained in:
parent
5ee0804631
commit
a5ffa735db
@ -6,7 +6,7 @@
|
||||
// For the license information refer to format.h.
|
||||
|
||||
#include <array>
|
||||
#include <limits>
|
||||
#include <climits>
|
||||
|
||||
#include "fmt/format.h"
|
||||
#include "gmock.h"
|
||||
@ -25,7 +25,7 @@ struct scan_args {
|
||||
template <size_t N>
|
||||
scan_args(const std::array<scan_arg, N>& store)
|
||||
: size(N), data(store.data()) {
|
||||
static_assert(N < std::numeric_limits<int>::max(), "too many arguments");
|
||||
static_assert(N < INT_MAX, "too many arguments");
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user