|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-04-16 08:41:52
type_with_alignment was generating huge types on most platforms, because it
would take every type with the right alignment into a union. On x86, for
instance, double and int have the same alignment (4), so
sizeof(type_with_alignment<4>::type)=12! type_with_alignment now takes the
first type whose alignment matches, and the types are roughly ordered by
size, so the resulting type size should be smaller.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk