Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-02-28 23:25:24


On Thursday 28 February 2002 05:27 pm, you wrote:
> > I did something like that at one point, and it was painful to compiler. I
> > like Brian Parker's version because it is so much simpler than any
> > typelist-based approach.
>
> Can you give the quick one-sentence summary of what he's doing?

The type to align against is a union, where the type 'X' of each member is a
type 'U' if sizeof(U) <= sizeof(type_we_want_to_make_storage_for) and char
otherwise.

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk