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

Joel de Guzman <[email protected]> Fri, 23 Oct 2020 07:52:39 +0800
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 10/23/20 2:40 am, Juan Dent wrote:
> Thanks Larry.... I found the culprit. The documentation talks about attributes for parsers being tuples, I was trying to use boost::tuple to collect the synthesized attributes when what I needed was fusion::vector instead!
> 
> The documentation is at fault here.
> 
> Thank you for your help and also of course to Joel!

Juan, you *can* use boost tuple of course. Just make sure it is properly adapted,
by including the necessary fusion adapter includes.

P.S. I don't think the documentation is at fault. I think you missed this part:
https://bit.ly/3ohpIQN

where it's clearly stated:
"The notation tuple<A, B> is used as a placeholder expression for any fusion sequence 
holding the types A and B, such as boost::fusion::tuple<A, B> or std::pair<A, B> (for more 
information see Boost.Fusion)."

Regards,
-- 
Joel