On Sunday, 27 March 2016 at 01:39:44 UTC, Simen Kjaeraas wrote:
On Friday, 25 March 2016 at 01:07:16 UTC, maik klein wrote:
Link to the blog post: https://maikklein.github.io/post/soa-d/
Link to the reddit discussion:
https://www.reddit.com/r/programming/comments/4buivf/why_and_when_you_should_use_soa/
Neat. I've actually thought about writing exactly this kind of
template for the fun of it. Thank you for showing how it'd work.
Btw, your use of Tuple!ArrayTypes for the 'containers' field
strikes me as unnecessary, as ArrayTypes on its own would cover
all your use cases.
--
Simen
Yeah you are right, initially I thought I would use the a "named"
tuple, like tuple(5, "field1", 1.0f, "field2"); but it was just
unnecessary.