27 Oct
2016
27 Oct
'16
3:58 a.m.
On 10/26/2016 10:17 AM, degski wrote:
On 26 October 2016 at 18:00, Michael Marcin
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)".