From 9acf89fef6a528eea1e256902bef946a6577f139 Mon Sep 17 00:00:00 2001 From: parkertomatoes Date: Mon, 16 Dec 2019 11:24:00 -0500 Subject: [PATCH] Mitigate MSVC issue with min/max macros (#1480) --- include/fmt/printf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/printf.h b/include/fmt/printf.h index a2fa945d..e48d2ca1 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -28,7 +28,7 @@ template struct int_checker { template <> struct int_checker { template static bool fits_in_int(T value) { - return value >= std::numeric_limits::min() && + return value >= (std::numeric_limits::min)() && value <= max_value(); } static bool fits_in_int(int) { return true; }