Re: Bug in real_parser

Joel de Guzman <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 19/09/2016 3:25 PM, peterkochlarsen wrote:
> 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.

FWIW this is fixed now in develop.

Regards,
-- 
Joel de Guzman
http://www.ciere.com
http://boost-spirit.com
http://www.cycfi.com/


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.