diff --git a/format.h b/format.h index b5f28610..d533dc3a 100644 --- a/format.h +++ b/format.h @@ -867,7 +867,7 @@ class PrintfFormatter : private FormatterBase { // Returns the argument with specified index or, if arg_index is equal // to the maximum unsigned value, the next argument. const Arg &get_arg(const Char *s, - unsigned arg_index = std::numeric_limits::max()); + unsigned arg_index = (std::numeric_limits::max)()); // Parses argument index, flags and width and returns the argument index. unsigned parse_header(const Char *&s, FormatSpec &spec);