Boost logo

Proto :

Subject: [proto] Expression as *other* fusion sequence
From: Joel falcou (joel.falcou_at_[hidden])
Date: 2011-06-16 20:30:33


proto expression are fusion sequence that iterates over the node
children. All fine and dandy.

Now here is my use case. I have expression whose terminal are fusion
sequence that access tot he terminal values (think terminal holding a
std:;array for example) and I wished to have expression of the terminal
be fusion sequence themselves so i can do stuff like :

at_c<0>( x + y * 3 )

where x and y are such terminals, this statement returning me the
equivalent of :

at_c<0>( x ) + at_c<0>( y ) * 3

Obviously, no candy as both fusion registration conflicts with each
others. My Fusion-fu beign quite weak, is there a way to have this AND
still have proto expressions behave as they should in other context ?


Proto list run by eric at boostpro.com