Boost logo

Boost Users :

Subject: Re: [Boost-users] [tuple] Tuple arithmetic
From: Bill Buklis (boostusr_at_[hidden])
Date: 2012-02-13 12:33:54

> 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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at