Re: [Spirit Development] Bug using operator >> and > in same sequence
"Hartmut Kaiser" <[email protected]> Sun, 2 Jan 2011 10:41:03 -0600
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
> Taking a look at support/arguments.hpp, it looks like the tree isn't being > flattened before the placeholders are evaluated and the static index range > kicks in. > > rule<vector3<int, int, int>(void)> r = int_ >> int_ > int_ compiles, which > leads me to think that this might be intentional, or possibly an > oversight. It might be a bug introduced by the new has_semantic_actions<> > CP - I'll look into that. > > Joel, Hartmut, can you guys shed some light on this? Is this a bug, or is > this desired behavior? That's not a bug, just normal C++ operator precedence. Regards Hartmut --------------- http://boost-spirit.com ------------------------------------------------------------------------------ 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