Skip to content

Commit

Permalink
Make sure that min and max do not collide with Windows.h macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukilele committed Dec 17, 2023
1 parent 4ec41f9 commit f6f6743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/faker-cxx/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ enum class StringCasing

struct CharCount
{
unsigned int atleastCount{std::numeric_limits<unsigned int>::min()};
unsigned int atmostCount{std::numeric_limits<unsigned int>::max()};
unsigned int atleastCount{(std::numeric_limits<unsigned int>::min)()};
unsigned int atmostCount{(std::numeric_limits<unsigned int>::max)()};
};

/*
Expand Down

0 comments on commit f6f6743

Please sign in to comment.