
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