The comment only mentioned "old version of MSVC".
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 1770 Build 1770: arc lint + arc unit
Event Timeline
Comment Actions
This whole type is basically a lie, though. 32-bit MSVC only ever aligns objects passed by value to 4 bytes. MSVC will issue an error if you try to pass something with __declspec(align) by value. This ifdef effectively works around that diagnostic, but fails to accomplish the goal of alignment.
If we ever depend on the alignment of these objects when they are passed by value, we are screwed. The only thing that saves us today is that we don't often pass highly aligned things by value.
So, there is more work to do here.