$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Silent change in boost 1.36 alignment_of<> template with gcc 4.3
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-08 21:57:10
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