uint_parser<int>() parse range?
wanghan02 <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all, >From the document <http://www.boost.org/doc/libs/1_62_0/libs/spirit/doc/html/spirit/qi/reference/numeric/uint.html> , we should expect integers from INT_MAX+1 to UINT_MAX will cause a parse failure to uint_parser<int>(). /"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*."/ But from the testing I found uint_parser<int>() does parse integers from INT_MAX+1 to UINT_MAX successfully. Is this a bug in the implementation? Thanks! Best regards, Han -- View this message in context: http://boost.2283326.n4.nabble.com/uint-parser-int-parse-range-tp4690387.html Sent from the spirit-general mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot