Gmane
From: David Pierre <david.pierre <at> worldonline.fr>
Subject: Re: Re: How use a grammar with multiple entries inside another grammar
Newsgroups: gmane.comp.parsers.spirit.general
Date: 2005-04-06 15:52:22 GMT (3 years, 34 weeks, 3 days, 17 hours and 58 minutes ago)
Joao Abecasis wrote:
> 
> > Is that a bug ?
> 
> I think so. It is now fixed in CVS (with the attached patch).

Thank you !

And now, slowly getting closer to my real use case, I added :

#include <boost/spirit/attribute/closure.hpp>

struct Type : public spirit::closure<Type, char>
{
  member1 type;
};

and changed Test to use it

struct Test : public spirit::grammar<Test, Type::context_t> 

and I get :

K:\Work\boost_1_32_0\boost\spirit\attribute\closure_context.hpp(33):
error C2664: 'boost::spirit::closure_context<Type>::__ctor' : cannot
convert parameter 1 from 
'const boost::spirit::impl::entry_grammar<Test, 1,
boost::spirit::closure<Type,char>::context_t>'
to 'const Type &'

 
David

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click