Boost logo

Boost :

Subject: Re: [boost] [density] new library
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2016-06-13 20:07:55


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/whatever<boost::any>.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk