
6 Oct
2010
6 Oct
'10
6:59 p.m.
On 10/06/10 13:33, Rutger ter Borg wrote: [snip]
Is there some kind of facility that is able to point to "padding space" in aligned structures? (perhaps a facility of the alignment stuff in boost)?
[snip] There's: https://svn.boost.org/trac/boost/browser/sandbox/variadic_templates/boost/co... It's used to calculate the distance between the end of 1 element in a tuple and the start of the next element so that that next element will have the proper alignment. IOW, if: aligned_offset<Offset,Alignment>::remainder != 0 then there will be padding in the amount: value-Offset That is, IIRC. HTH. -Larry