From f6f674326a34f6bead7e61a7ab57d78d44ef9b44 Mon Sep 17 00:00:00 2001 From: Kilian Henneberger Date: Sun, 17 Dec 2023 17:02:33 +0100 Subject: [PATCH] Make sure that min and max do not collide with Windows.h macros --- include/faker-cxx/String.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/faker-cxx/String.h b/include/faker-cxx/String.h index 53e3be41f..64323ef0a 100644 --- a/include/faker-cxx/String.h +++ b/include/faker-cxx/String.h @@ -22,8 +22,8 @@ enum class StringCasing struct CharCount { - unsigned int atleastCount{std::numeric_limits::min()}; - unsigned int atmostCount{std::numeric_limits::max()}; + unsigned int atleastCount{(std::numeric_limits::min)()}; + unsigned int atmostCount{(std::numeric_limits::max)()}; }; /*