Re: [Spirit Development] Bug using operator >> and > in same sequence
Joel de Guzman <[email protected]> Mon, 03 Jan 2011 08:27:15 +0800
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
On 1/3/11 5:26 AM, Robert Nelson wrote: > Thanks for the forward; it has some useful information. I spent some > time looking at the proto docs as well. I think it is possible to > flatten trees with the transform struct. The built-in flatten tree > transform seems inadequate in situations like this where we have 2 > very similar operators. But maybe we could achieve the desired > functionality using a custom transform struct. > I found this in the archives: > http://lists.boost.org/Archives/boost/2008/03/134396.php > It explains how to flatten an expression such as a - b + c into a > single fusion tuple. Maybe we could do something similar for the > operators> and>>. > I, admittedly, don't know that much about proto, but I think it would > be possible to flatten trees containing both operators. This is very possible, but tricky. This has been one of the top items in my TODO list. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl