Closed syyyr closed 3 years ago
Semantic actions on a rule definition inhibit automatic attribute propagation. See:
So, the function of operator%=
is to automatically propagate attributes even if I'm using semantic actions?
Okay, found it in the documentation of Qi. https://www.boost.org/doc/libs/1_75_0/libs/spirit/doc/html/spirit/qi/reference/nonterminal/rule.html
Hi, I'm trying to get rid of fusion stuff in my single-element structs as suggested in #463. While doing that, I found a bug with semantic actions, where the struct doesn't get correctly filled with the value. This is how to reproduce.
My
operator=
actually never gets called. I'm not sure I implemented it correctly. Is this really a bug or am I doing something wrong? I have also tried adding another member into the struct and use BOOST_FUSION_ADAPT_STRUCT and the bug is still there: https://gist.github.com/syyyr/94f7f9a0b65e8d4a81eb7a55be8e62ffBoost version: 1.75.0