
24 Jul
2008
24 Jul
'08
8:43 p.m.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Alp Mestan Sent: Thursday, July 24, 2008 1:33 PM To: boost@lists.boost.org 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