
14 Jun
2016
14 Jun
'16
12:07 a.m.
On 14/06/2016 10:31, Giuseppe Campana wrote:
The problem I see with both a tuple_vector and a vector of boost::variant's is that the types that can be added to the containers are part of the declaration of the container, so you have to know them in advance. When this is possible IMO you approach is good. Density is addressing the case in which the declaration of the container can't depend on the type of elements. Think to the dense_function_queue. An element of this container may be the result of an std::bind, or a lambda, which are unnamed types.
Sounds like you should have a comparison between this and std::vector/queue/whateverboost::any.