________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Zachary Turner [divisortheory@gmail.com] Enviado el: viernes, 10 de julio de 2009 19:44 Para: boost-users@lists.boost.org Asunto: Re: [Boost-users] [Tuple] What's the point?
I consider it a C++ design problem that there are actually situations where iterating over elements of a tuple is the "quickest" way to accomplish something. When you're iterating over a collection and performing some operation on the items in the collection, the elements neecssarily having something in common otherwise the operation wouldn't make sense. But at the same time, the common aspect is determined by the function, not by any aspect of the types themselves. From a theoretical perspective I think it's better to approach this with typeclasses
C++0x concepts are very akin to type classes. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo