@@ -787,7 +787,7 @@ template <typename Grammar, const auto & input, typename ActionSelector = empty_
787787 template <size_t Pos> static constexpr auto get_current_term() noexcept {
788788 if constexpr (Pos < input.size()) {
789789 constexpr auto value = input[Pos];
790- if constexpr (value <= static_cast<decltype(value)>(std::numeric_limits<char>::max())) {
790+ if constexpr (value <= static_cast<decltype(value)>(( std::numeric_limits<char>::max) ())) {
791791 return term<static_cast<char>(value)>{};
792792 } else {
793793 return term<value>{};
@@ -804,7 +804,7 @@ template <typename Grammar, const auto & input, typename ActionSelector = empty_
804804 return epsilon{};
805805 } else if constexpr ((Pos-1) < input.size()) {
806806 constexpr auto value = input[Pos-1];
807- if constexpr (value <= static_cast<decltype(value)>(std::numeric_limits<char>::max())) {
807+ if constexpr (value <= static_cast<decltype(value)>(( std::numeric_limits<char>::max) ())) {
808808 return term<static_cast<char>(value)>{};
809809 } else {
810810 return term<value>{};
@@ -2167,7 +2167,7 @@ template <auto V, size_t N, typename... Ts, typename Parameters> static constexp
21672167}
21682168// hexdec character support (convert to character)
21692169template <auto V, size_t N, typename... Ts, typename Parameters> static constexpr auto apply(pcre::finish_hexdec, ctll::term<V>, pcre_context<ctll::list<number<N>, Ts...>, Parameters> subject) {
2170- constexpr size_t max_char = std::numeric_limits<char>::max();
2170+ constexpr size_t max_char = ( std::numeric_limits<char>::max) ();
21712171 if constexpr (N <= max_char) {
21722172 return pcre_context{ctll::push_front(character<char{N}>(), ctll::list<Ts...>()), subject.parameters};
21732173 } else {
@@ -3742,25 +3742,25 @@ template <typename... Content> constexpr size_t calculate_size_of_first(ctre::se
37423742}
37433743
37443744template <auto A, typename CB> constexpr int64_t negative_helper(ctre::character<A>, CB & cb, int64_t start) {
3745- if (A != std::numeric_limits<int64_t>::min()) {
3745+ if (A != ( std::numeric_limits<int64_t>::min) ()) {
37463746 if (start < A) {
37473747 cb(start, A-1);
37483748 }
37493749 }
3750- if (A != std::numeric_limits<int64_t>::max()) {
3750+ if (A != ( std::numeric_limits<int64_t>::max) ()) {
37513751 return A+1;
37523752 } else {
37533753 return A;
37543754 }
37553755}
37563756
37573757template <auto A, auto B, typename CB> constexpr int64_t negative_helper(ctre::char_range<A,B>, CB & cb, int64_t start) {
3758- if (A != std::numeric_limits<int64_t>::min()) {
3758+ if (A != ( std::numeric_limits<int64_t>::min) ()) {
37593759 if (start < A) {
37603760 cb(start, A-1);
37613761 }
37623762 }
3763- if (B != std::numeric_limits<int64_t>::max()) {
3763+ if (B != ( std::numeric_limits<int64_t>::max) ()) {
37643764 return B+1;
37653765 } else {
37663766 return B;
@@ -3795,14 +3795,14 @@ template <typename Head, typename... Rest, typename CB> constexpr int64_t negati
37953795 return negative_helper(ctre::set<Rest...>{}, cb, start);
37963796}
37973797
3798- template <typename Head, typename... Rest, typename CB> constexpr void negative_helper(ctre::negative_set<Head, Rest...>, CB && cb, int64_t start = std::numeric_limits<int64_t>::min()) {
3798+ template <typename Head, typename... Rest, typename CB> constexpr void negative_helper(ctre::negative_set<Head, Rest...>, CB && cb, int64_t start = ( std::numeric_limits<int64_t>::min) ()) {
37993799 start = negative_helper(Head{}, cb, start);
38003800 negative_helper(ctre::negative_set<Rest...>{}, std::forward<CB>(cb), start);
38013801}
38023802
3803- template <typename CB> constexpr void negative_helper(ctre::negative_set<>, CB && cb, int64_t start = std::numeric_limits<int64_t>::min()) {
3804- if (start < std::numeric_limits<int64_t>::max()) {
3805- cb(start, std::numeric_limits<int64_t>::max());
3803+ template <typename CB> constexpr void negative_helper(ctre::negative_set<>, CB && cb, int64_t start = ( std::numeric_limits<int64_t>::min) ()) {
3804+ if (start < ( std::numeric_limits<int64_t>::max) ()) {
3805+ cb(start, ( std::numeric_limits<int64_t>::max) ());
38063806 }
38073807}
38083808
@@ -3933,8 +3933,8 @@ template <size_t Capacity> class point_set {
39333933 insert(A,B);
39343934 }
39353935 constexpr void populate(can_be_anything) {
3936- points[0].low = std::numeric_limits<int64_t>::min();
3937- points[0].high = std::numeric_limits<int64_t>::max();
3936+ points[0].low = ( std::numeric_limits<int64_t>::min) ();
3937+ points[0].high = ( std::numeric_limits<int64_t>::max) ();
39383938 used = 1;
39393939 }
39403940 template <typename... Content> constexpr void populate(ctre::negative_set<Content...> nset) {
0 commit comments