From 61273ec8cb072b606d3e7565cfebefee29a95865 Mon Sep 17 00:00:00 2001 From: Artem Umerov Date: Wed, 29 Jun 2022 17:53:19 +0300 Subject: [PATCH] fix compile on windows undefine min, max if including Windows.h --- single_include/nlohmann/json.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 50e5c805c..f419b807e 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -3795,7 +3795,8 @@ template::value, bool TSigned = std::is_signed::value> struct value_in_range_of_impl2; - +#undef min +#undef max template struct value_in_range_of_impl2 {