Re: [Spirit Qi %] (x%y) not semantically equivalent to (x >> *(y >> x))

Lee Clagett <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <20160527140349.0302a02d@laptop-m1330>
On Fri, 27 May 2016 08:36:24 +0200
Frank Hein <[email protected]> wrote:

> There is no particular warning in the docs telling me that the output
> of qi::string (btw. as well as the output of any other (attribute
> producing (of course)) parser can be "eaten up" when used with the %
> operator. 
> 

This is not true, from the list operator documentation:

    Attributes

      See Compound Attribute Notation.

      Expression            Attribute
      a % b                 a: A, b: B --> (a % b): vector<A>
                            a: Unused, b: B --> (a % b): Unused

Which clearly states that `b` in the expression `a % b` is not exposed
as an attribute.

Lee

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
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.