共用方式為


編譯器錯誤 C2718

'parameter': 具有 __declspec(align('#')) 的實際參數不會對齊

不允許在函式參數上使用 align __declspec 修飾元。

下列範例會產生 C2718:

// C2718.cpp
typedef struct __declspec(align(32)) AlignedStruct  {
   int i;
} AlignedStruct;

void f2(int i, ...);

void f4() {
   AlignedStruct as;

   f2(0, as);   // C2718, actual parameter is aligned
}