We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f94ffad + f26dd39 commit d499d55Copy full SHA for d499d55
docs/error-messages/compiler-errors-1/compiler-error-c2345.md
@@ -12,11 +12,11 @@ align(value) : illegal alignment value
12
13
You passed a value to the [align](../../cpp/align-cpp.md) keyword that is outside the allowable range.
14
15
-The following code generates C2345
+The following sample generates C2345:
16
17
```cpp
18
// C2345.cpp
19
// compile with: /c
20
-__declspec(align(0)) int a; // C2345
21
-__declspec(align(1)) int a; // OK
+__declspec(align(8)) int a; // OK
+__declspec(align(16384)) int b; // C2345
22
```
0 commit comments