
9 Nov
2008
9 Nov
'08
2:57 a.m.
AMDG David Abrahams wrote:
Unfortunately, this broke some code I had written that did structure introspection, because gcc's __alignof__() returns 8 for double on the x86 architecture, but actually only aligns doubles on 4 byte boundaries inside structures.
We could easily either specialize our way around it or limit the result of alignment_of<T> to sizeof(T). The latter seems like a smart thing to do anyway.
sizeof(double) is usually 8 isn't it? In Christ, Steven Watanabe