Heya, On 13:46 Sun 16 Oct , Michael Marcin wrote:
Would something like an soa_vector, that's resizable at runtime and behaves much like a std::vector better suit your needs?
Yes exactly that.
just FYI: I've added a basic soa_vector to LibFlatArray's trunk[1]. It's not perfect, but allows basic usage and particle callbacks (see test[2]). I'm looking forward to benchmarking that code. :-)
I would also strongly prefer a tuple-like variadic template interface to a macro interface.
Yeah, macros are poor, but I wanted an interface where members have sensible names (as opposed to first, second...) Not much options without reflection. Cheers -Andreas [1] https://github.com/gentryx/libflatarray/blob/master/include/libflatarray/soa... [2] https://github.com/gentryx/libflatarray/blob/master/test/soa_vector_test.cpp... -- ========================================================== Andreas Schäfer HPC and Supercomputing Institute for Multiscale Simulation Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany +49 9131 85-20866 PGP/GPG key via keyserver http://www.libgeodecomp.org ========================================================== (\___/) (+'.'+) (")_(") This is Bunny. Copy and paste Bunny into your signature to help him gain world domination!