
15 Oct
2009
15 Oct
'09
6:53 p.m.
Hi! I'm currently playing around with boost::tuple and std::vector. I noticed that having a std::vector containing boost::tuple elements has "dense" memory layout. My question: is this intended behavior, or will it go away in the future? (The current state is much to my advantage: instead of allocating memory C style and copying lots of data in order to feed some C API, I can reinterpret_cast a pointer, and everything is fine.) Thanks Sebastian