|
Boost : |
Subject: Re: [boost] interest in structure of arrays container?
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2016-10-26 23:58:13
On 10/26/2016 10:17 AM, degski wrote:
> On 26 October 2016 at 18:00, Michael Marcin <mike.marcin_at_[hidden]> wrote:
>
>> But I don't know how to query the alignment of an object rather than a
>> type.
>>
>
> Shouldn't ( & object [ 0 ] ) % 16 == 0 do the trick?
>
There's quite a large difference between "this object happens to land on
a 16 byte alignment" and "what is the alignment of this object?" or even
"is this object alignas(16)".
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk