Closed Kojoley closed 6 years ago
I tried to use something like this proto::call<phoenix_generator(proto::call<proto::value(proto::_left)>, proto::_right)>
but it did not compile/work. I would be glad for pointing me towards a such working rewrite transformation.
Bam! There you go. I'm sorry my memory of it has slipped me :-/
It looks like I have found the reason why assignment/subscript operators were defined by hand (ref #64) but not with
BOOST_PROTO_EXTENDS_SUBSCRIPT
/BOOST_PROTO_EXTENDS_ASSIGN
.For unknown reason proto's assignment and subscript operators takes rhs by reference while other operators takes both arguments by value.
Example: