Boost logo

Boost Users :

From: Larry Smith (larry.i.smith_at_[hidden])
Date: 2006-11-25 14:42:17


Peter Dimov wrote:
> Larry Smith wrote:
>
>> I don't understand why the lib should care about the
>> data alignment of the struct's (packed versus unpacked).
>
> The library doesn't; your compiler does, and it's wrong in this case.
> char[8] requires no padding or alignment, so it should bind to char(&)[8] in
> either mode. You might be able to use a reinterpret_cast to silence the
> compiler.

Yes, the problem is that the real struct's have int's, long's,
double's, and char[] members intermixed. The existing Windows
code requires that the struct's remain packed (it's a long story
with roots in the original implemenation 15 years ago).

Thanks,
Larry


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net