Skip to content

Commit f26dd39

Browse files
Merge pull request #4741 from Rageking8/update-c2345
Update C2345
2 parents c0f3aba + 47e0013 commit f26dd39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2345.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ align(value) : illegal alignment value
1212

1313
You passed a value to the [align](../../cpp/align-cpp.md) keyword that is outside the allowable range.
1414

15-
The following code generates C2345
15+
The following sample generates C2345:
1616

1717
```cpp
1818
// C2345.cpp
1919
// compile with: /c
20-
__declspec(align(0)) int a; // C2345
21-
__declspec(align(1)) int a; // OK
20+
__declspec(align(8)) int a; // OK
21+
__declspec(align(16384)) int b; // C2345
2222
```

0 commit comments

Comments
 (0)