Boost logo

Boost :

Subject: Re: [boost] "Software Development using the C++ Boost Library", book in preparatiion Options
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-02-17 14:24:17

Jesse Perla wrote:
>> 4. Fusion: I think this is useful, especially with Any?
> While I have never used "any", I believe these are two different ways to
> deal with the problem. Using something like std::vector<boost::any> is
> another example of type erasure (just as std::vector<boost::function<double
> (double)> > would be). boost::fusion allows you to have a tuple-like vector
> of different types, but while retaining type information. The same types of
> tradeoffs apply as before... and fusion is only usable if you know the types
> at design-time. If you end up converting some of your code away from
> boost::function, you may need something like this. On the other hand, it
> can be pretty advanced so be careful...
Fusion has little inc ommon with any. Fusion provides generalized,
heterogeneous tuple class with associate
runtime and ocmpile-time algorithm. It bridges the gap between the
compila-time world and the runtime one.

Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost list run by bdawes at, gregod at, cpdaniel at, john at