From: Jeff F. <Tri...@ho...> - 2005-08-10 15:15:24
|
"Dalton, Barnaby" <Bar...@br...> wrote in message news:383BF6A1AD220A4796FE90A9EC3FB40602CBEA@bhmail1... > -----Original Message----- > From: spi...@li... > [mailto:spi...@li...] On Behalf > Of Jeff Flinn > Sent: Wednesday 10 August 2005 14:03 > To: spi...@li... > Subject: [Spirit-general] Re: Building tree of custom structs > (structs as closure vars?) > > > I've become fond of functor parsers when faced with these tasks: > > struct name_parser_function > { > // snip... > }; > > name_rule_name = name_p[assign(self.mName)]; > I like the look of this. How does name_p relate to name_parser_function? Is there some kind of convenience typedef required? Oops, got lost in cutting and pasting: const functor_parser<name_parser_function> name_p; Jeff Flinn Applied Dynamics International |