Boost logo

Boost Users :

Subject: Re: [Boost-users] [Tuple] What's the point?
From: JOAQUIN M. LOPEZ MUÑOZ (joaquin_at_[hidden])
Date: 2009-07-10 13:52:09


________________________________________
De: boost-users-bounces_at_[hidden] [boost-users-bounces_at_[hidden]]
En nombre de Zachary Turner [divisortheory_at_[hidden]]
Enviado el: viernes, 10 de julio de 2009 19:44
Para: boost-users_at_[hidden]
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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net