2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

Prevent error C2589 when min, max was defined.

This commit is contained in:
UMU
2021-08-21 21:58:10 +08:00
committed by Nikita Kniazev
parent 1745794818
commit 6a92324d7c

View File

@@ -50,11 +50,11 @@ namespace boost { namespace spirit { namespace support { namespace detail
typedef std::numeric_limits<value_type> limits;
value_type decr_first =
range.first == limits::min()
range.first == (limits::min)()
? range.first : range.first-1;
value_type incr_last =
range.last == limits::max()
range.last == (limits::max)()
? range.last : range.last+1;
return (decr_first <= other.last) && (incr_last >= other.first);