Re: [proto] : Proto transform with state

2010-11-17 Thread Eric Niebler
On 11/17/2010 1:47 AM, Manjunath Kudlur wrote: > I am trying to create a transform where I replace occurrences of > proto::terminal with proto::terminal > >. I > want N to increment for every proto::terminal encountered. So > far I have the following code : > I pass in mpl::int_<0>() as the init

Re: [proto] : Proto transform with state

2010-11-17 Thread joel falcou
On 17/11/10 19:46, Eric Niebler wrote: See the attached code. I wish I had a better answer. It sure would be nice to generalize this for other times when new state needs to bubble up and back down. Just chiming in. We had the exact same problem in quaff where needed to carry on a process ID ove

Re: [proto] : Proto transform with state

2010-11-17 Thread Eric Niebler
On 11/17/2010 2:18 PM, joel falcou wrote: > On 17/11/10 19:46, Eric Niebler wrote: >> See the attached code. I wish I had a better answer. It sure would be >> nice to generalize this for other times when new state needs to bubble >> up and back down. > > Just chiming in. We had the exact same prob

Re: [proto] : Proto transform with state

2010-11-17 Thread Thomas Heller
Eric Niebler wrote: > On 11/17/2010 2:18 PM, joel falcou wrote: >> On 17/11/10 19:46, Eric Niebler wrote: >>> See the attached code. I wish I had a better answer. It sure would be >>> nice to generalize this for other times when new state needs to bubble >>> up and back down. >> >> Just chiming i