Packing and Alignment
By Eric
—
—
1 minute read
I've made some effort to understand the differences between the Struct
Member Alignment compiler option /Zp, #pragma pack and
__declspec(align()) with Microsoft Visual C++ in light of an odd bug
that ultimately was caused by inconsistent packing options between
compilation units.
/Zp and #pragma pack are equivalent, but /Zp …