Export (0) Print
Expand All
Expand Minimize

Compiler Error C2345

Error Message

align(value) : illegal alignment value

You passed a value to the align keyword that is outside the allowable range.

The following code generates C2345

// C2345.cpp
// compile with: /c
__declspec(align(0)) int a;   // C2345
__declspec(align(1)) int a;   // OK

Community Additions

ADD
Show:
© 2015 Microsoft