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

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.
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


Boost list run by bdawes at, gregod at, cpdaniel at, john at