Re: Bug in real_parser
peterkochlarsen <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
sehe wrote > If you want to specify a parser that /does not/ expect an exponent part, > then you **must** specify so. Use a custom real_parser policy. This is not correct. The exponent should be parsed only if it is a valid exponent and "E" is not a valid exponent as it is not followed by an integral number. At least this is my understanding based on the documentation and the comments in the code. Also, if it was indeed the case, the parser should fail and not return 45000, still exposing an error. Your example on Coliru does not check the validity of the double - it is the eoi and not the double parser, that fails. Anyway this discussion is moot as the bug-report I filed on boost has been accepted and apparently already corrected in the develop branch. /Peter -- View this message in context: http://boost.2283326.n4.nabble.com/Bug-in-real-parser-tp4688120p4688158.html Sent from the spirit-general mailing list archive at Nabble.com. ------------------------------------------------------------------------------