Boost logo

Boost :

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-----
Hash: SHA1

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.
- --
Chad Nelson
Oak Circle Software, Inc.
*
*
*
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvEph4ACgkQp9x9jeZ9/wRRGQCeNKHmPxtRlQH/vVCCJlf5e83/
gNsAoOM/b8n1M0qKTbOPTx3bbNIzEtpt
=8SsY
-----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