Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 772 Bytes

compiler-error-c2719.md

File metadata and controls

22 lines (18 loc) · 772 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2719
Compiler Error C2719
11/04/2016
C2719
C2719
ea6236d3-8286-45cc-9478-c84ad3dd3c8e

Compiler Error C2719

'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);
close