Re: Synthetic attributes
2009-08-31 23:42:09 GMT
> > Alastair Rankine wrote: > >> I'm probably doing something very obviously wrong, but for the life > of > >> me I can't see it. Here's my version of what is supposed to be a > >> simplistic HTML parser using synthetic attributes and locals. When I > >> compile using gcc against the latest SVN trunk, I get a compiler > error: > >> > >> .../spirit.cpp:24: error: no match for 'operator=' in > >> 'boost::spirit::_val = boost::spirit::_1' > >> .../boost-trunk/boost/spirit/home/phoenix/core/actor.hpp:61: note: > >> candidates are: boost::phoenix::actor<boost::spirit::attribute<0> >& > >> boost::phoenix::actor<boost::spirit::attribute<0> >::operator=(const > >> boost::phoenix::actor<boost::spirit::attribute<0> >&) > > > > Try including: > > #include <boost/spirit/include/phoenix_core.hpp> > > #include <boost/spirit/include/phoenix_operator.hpp> > > > > Regards, > > Ah actually it looks like I was trying to get the result of the start > rule which wasn't defined as returning one... (thus satisfying the > "very obviously wrong" criteria above). > > However I've fixed the problem but now it seems to behave somewhat > erratically, and again I can't quite see why. By erratically I mean > that the "iter == testString.end()" test check fails, even though the > parse is successful. And slightly more worryingly, if I change the test(Continue reading)
RSS Feed