编译器错误 C2719
“parameter”:不对齐具有 __declspec(align('#')) 的形参
函数参数上不允许使用 align __declspec
修饰符。 函数参数的对齐方式由所使用的调用约定控制。 有关详细信息,请参阅调用约定。
以下示例将生成 C2719,并演示如何修复此错误:
// C2719.cpp
void func(int __declspec(align(32)) i); // C2719
// try the following line instead
// void func(int i);