Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-25 13:27:20


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.


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