2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-24 18:32:20 +00:00

5 Commits

Author SHA1 Message Date
Nikita Kniazev
dc6f70d384 X3: More variables initialization
Once again to please older compilers and fix constexpr tests
2020-03-29 20:48:21 +03:00
Nikita Kniazev
8e94d8d783 X3: Extensive constexpr testing and fixes (#572)
I have replaced the shallow constexpr test and fixed revealed missing parts.
2020-03-06 04:17:29 +03:00
Han Wang
b8b82630ac fix x3::uint_parser<T(signed)> overflow problem
According to spirit document,

  "All numeric parsers check for overflow conditions based on the type T the corresponding uint_parser<> has been instantiated with. If the parsed number overflows this type the parsing fails. Please be aware that the overflow check is not based on the type of the supplied attribute but solely depends on the template parameter T."

the valid input range of x3::uint_parser<T> should be 0 - std::numeric_limits<T>::max(). However, the current implementation takes values from std::numeric_limits<T>::max()+1 - std::numeric_limits<std::make_unsigned_t<T>>::max() also as valid input.
2017-11-27 17:47:10 +01:00
Joel de Guzman
0adee06b27 cleaning up the tests 2015-05-14 02:13:24 +08:00
Joel de Guzman
5767624292 preparing for migration to boost devel 2014-03-18 10:53:30 +08:00