|
Boost : |
From: Bradford, Chase (CHASE.BRADFORD_at_[hidden])
Date: 2008-07-24 16:43:31
> -----Original Message-----
> From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]]
> On Behalf Of Alp Mestan
> Sent: Thursday, July 24, 2008 1:33 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] generict container for structure of arrays
>
> Wouldn't a vector of boost::any act like that ?
>
>
My first draft used boost::any, but it became a pain to do things like
resize the internal containers or manage their iterators. By using a
variant, where its types are all vector<T>, I could write static visitor
implementations that work against the container or iterator interface,
without having to know about the contained type.
Chase
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk