Compiler Error C2345
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2345.
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
Show: