
13 Feb
2012
13 Feb
'12
5:33 p.m.
As Jeffrey already noted, this is where fusion + phoenix really starts to shine. Especially if you have a tuple with different data types, you won't get far with C++11 lambdas. Using fusion::for_each, fusion::transform with an appropriate phoenix expression might do the trick here. Note that tuples are a very generic datatype, it wouldn't make a lot of sense to add some special operators to them. If you think in a functional programming kind of, phoenix is the answer.
So far I've only scratched the surface of fusion and phoenix. I will have to delve into them a little more deeply at some point. Right now this is more of a thought experiment that anything else. Thanks everyone for your insight. -- Bill