Re:Bulk Data Structures C++
by kllrnohj on Tuesday August 20, 2019 @07:45PM
(#20753381)
> Can we hide the actual memory layout without big overhead using C++ inline/template functions/classes?
Not super easily because the array type needs to know the fields of the class it's containing to do the re-write. This is where you need more substantial codegen to enter the picture. Something like the metaclasses proposal should handle it just fine. Or macros in the meantime.
Not super easily because the array type needs to know the fields of the class it's containing to do the re-write. This is where you need more substantial codegen to enter the picture. Something like the metaclasses proposal should handle it just fine. Or macros in the meantime.