Re: how to get all the attributes out of a parser

Joel de Guzman <[email protected]> Fri, 23 Oct 2020 08:36:27 +0800
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 10/23/20 8:27 am, Juan Dent wrote:
> Hi,
> 
> This does not address the big question about which are the needed includes for using boost::tuple to get the attributes...
> 
> Or even more general and useful: where is this documented?


In Boost Fusion. For boost::tuple, that would be:
#include <boost/fusion/adapted.hpp>

Seth's stackoverflow is very informative.

Here's my suggestion: if you want trouble-free use of Spirit, just start with the
examples and tests and venture outside carefully as you gain more proficiency. If
your goal is gaining expertise on Spirit, then read all the docs through-and-through,
including all the support libraries such as Fusion. Missing out on little things
can get you tangled in (non)issues like this.

Regards,
-- 
Joel