Subject: Re: [boost] [xint] Question about suitability, portability, and "Boostiness"
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-04-13 13:13:05
-----BEGIN PGP SIGNED MESSAGE-----
On 04/13/2010 11:57 AM, DE wrote:
> trying to propose something smart i came to the same solution...
> but what about struct member alignment?
> does it matter for the struct hack?
I don't think that matters. The compiler would set up the struct with
the proper alignment, including the first item of the (one-item) array,
and sizeof() would return the size with any padding. The items in an
array are all packed end-to-end too, so I don't see how this would be
any different from a more conventional approach. Except, of course, that
it's more efficient.
I just wanted to check with the people on this list about the
portability of it. Since you guys collectively deal with that more than
any other group in the world, I figured you would know if there were any
hidden portability problems with the design. If I don't hear about any
soon, I'll take it that there aren't any known ones and implement it.
Oak Circle Software, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk