description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C2719 | Compiler Error C2719 | 11/04/2016 |
|
| ea6236d3-8286-45cc-9478-c84ad3dd3c8e |
'parameter': formal parameter with __declspec(align('#')) won't be aligned
The align__declspec
modifier is not permitted on function parameters. Function parameter alignment is controlled by the calling convention used. For more information, see Calling Conventions.
The following sample generates C2719 and shows how to fix it:
// C2719.cppvoidfunc(int__declspec(align(32)) i); // C2719// try the following line instead// void func(int i);