25 Nov
2006
25 Nov
'06
6:27 p.m.
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.