Re: How to force attribute propagation in x3 when using semantic actions

Alberto Luaces <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Alberto Luaces writes:

> Seth writes:
>
>> On 15-12-17 16:32, Alberto Luaces wrote:
>>> I tried before posting, but it makes no difference for me:
>>>
>>> http://coliru.stacked-crooked.com/a/b58b992c2a5df373
>>
>>         // Let us pretend that this parses a list and not only two entities.
>>
>> Pretending doesn't make compilers happy. You need something that is
>> actually compatible with your attribute type.
>>
>
> I though it was: at least on the Qi documentation[1] it is said that:
>
> A >> A → vector<A>
>
> I will check if for x3 things are different.
>

It seems things are the same in x3 —is it a bug that I have to
explicitly specify that A >> A returns a vector<A> instead of tuple<A>?

https://ciere.com/cppnow15/x3_docs/spirit/quick_reference/compound_attribute_rules.html

-- 
Alberto


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.