Re: [Boost-bugs] [Boost C++ Libraries] #10193: [Spirit.qi] real_parser is too strict with the exponent part

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10193: [Spirit.qi] real_parser is too strict with the exponent part
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-11 08:46:22


#10193: [Spirit.qi] real_parser is too strict with the exponent part
-------------------------------+----------------------
  Reporter: anonymous | Owner: djowel
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: spirit
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by djowel):

 Sorry, you are right. OK, the problem is with the docs, not the
 implementation. The correct grammar according to the
 http://en.cppreference.com/w/cpp/language/floating_literal is

     (lit('e') | 'E') >> -(sign >> +digit)

 Seems there's a problem with grouping there.

 The second one consists of the following parts:
   nonempty sequence of decimal digits (defines significant)
   e or E followed with optional minus or plus sign and nonempty sequence
 of decimal digits (defines exponent)

 Are we in agreement?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10193#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC