Ben Hutchings <[EMAIL PROTECTED]> writes:

> Falk Hueffner wrote:
>> Note also that the program will not work as intended, because (as soon
>> as gcc is fixed) all the packedness is ignored. So I clone this bug.
>
> Thanks for the confirmation.  Personally I think packed structures are a
> horrible idea.  Presumably if all the classes involved are changed to be
> POD, they'll become packed again?

Yes.

> (In practice I don't think it makes a difference, as the class
> members appear to be naturally aligned without any need for padding
> bytes.)

Well, it looks like the code attempts to cast random unaligned char*'s
to class pointers, so there needs to be precaution against
unalignedness.

-- 
        Falk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to