-
Notifications
You must be signed in to change notification settings - Fork 970
Structure error references in range [C2101, C2120] #5538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
v-dirichards
merged 4 commits into
MicrosoftDocs:main
from
Rageking8:structure-error-references-in-range-c2101-c2120
Aug 4, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
dcd4480
Add blockquotes for error messages in range [C2101, C2120]
Rageking8 2b194ac
Add "Remarks" and "Example" headings for error references in range [C…
Rageking8 0f85397
Replace term "sample" with "example" for error references in range [C…
Rageking8 43e8603
Update metadata for error references in range [C2101, C2120]
Rageking8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 8 additions & 4 deletions
12
docs/error-messages/compiler-errors-1/compiler-error-c2101.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
docs/error-messages/compiler-errors-1/compiler-error-c2102.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
docs/error-messages/compiler-errors-1/compiler-error-c2103.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
docs/error-messages/compiler-errors-1/compiler-error-c2104.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
docs/error-messages/compiler-errors-1/compiler-error-c2106.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
docs/error-messages/compiler-errors-1/compiler-error-c2107.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
docs/error-messages/compiler-errors-1/compiler-error-c2109.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
docs/error-messages/compiler-errors-1/compiler-error-c2112.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
description: "Learn more about: Compiler Error C2112" | ||
title: "Compiler Error C2112" | ||
ms.date: "11/04/2016" | ||
description: "Learn more about: Compiler Error C2112" | ||
ms.date: 11/04/2016 | ||
f1_keywords: ["C2112"] | ||
helpviewer_keywords: ["C2112"] | ||
ms.assetid: 527a2fea-f585-4d00-bbb4-477aee17144b | ||
--- | ||
# Compiler Error C2112 | ||
|
||
'-' : pointer subtraction requires integral or pointer operand | ||
> '-' : pointer subtraction requires integral or pointer operand | ||
|
||
## Remarks | ||
|
||
An attempt was made to subtract pointers that point to different types. |
9 changes: 5 additions & 4 deletions
9
docs/error-messages/compiler-errors-1/compiler-error-c2113.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
description: "Learn more about: Compiler Error C2113" | ||
title: "Compiler Error C2113" | ||
ms.date: "11/04/2016" | ||
description: "Learn more about: Compiler Error C2113" | ||
ms.date: 11/04/2016 | ||
f1_keywords: ["C2113"] | ||
helpviewer_keywords: ["C2113"] | ||
ms.assetid: be85cb5e-b0ed-4fc9-b062-032bf7f59a4e | ||
--- | ||
# Compiler Error C2113 | ||
|
||
'-' : pointer can only be subtracted from another pointer | ||
> '-' : pointer can only be subtracted from another pointer | ||
|
||
## Remarks | ||
|
||
The right operand in a subtraction operation was a pointer, but the left operand was not. |
9 changes: 5 additions & 4 deletions
9
docs/error-messages/compiler-errors-1/compiler-error-c2114.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
description: "Learn more about: Compiler Error C2114" | ||
title: "Compiler Error C2114" | ||
ms.date: "11/04/2016" | ||
description: "Learn more about: Compiler Error C2114" | ||
ms.date: 11/04/2016 | ||
f1_keywords: ["C2114"] | ||
helpviewer_keywords: ["C2114"] | ||
ms.assetid: c1b2445f-74eb-4dc8-8d5a-6c8627775ee8 | ||
--- | ||
# Compiler Error C2114 | ||
|
||
'operator' : pointer on left; needs integral value on right | ||
> 'operator' : pointer on left; needs integral value on right | ||
|
||
## Remarks | ||
|
||
The left operand of `operator` was a pointer, so the right operand must be an integer value. |
9 changes: 5 additions & 4 deletions
9
docs/error-messages/compiler-errors-1/compiler-error-c2115.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
--- | ||
description: "Learn more about: Compiler Error C2115" | ||
title: "Compiler Error C2115" | ||
ms.date: "11/04/2016" | ||
description: "Learn more about: Compiler Error C2115" | ||
ms.date: 11/04/2016 | ||
f1_keywords: ["C2115"] | ||
helpviewer_keywords: ["C2115"] | ||
ms.assetid: 95d76ab5-ddd7-4e29-8cac-24285dccc490 | ||
--- | ||
# Compiler Error C2115 | ||
|
||
'identifier' : incompatible types | ||
> 'identifier' : incompatible types | ||
|
||
## Remarks | ||
|
||
An expression contained incompatible types. |
7 changes: 3 additions & 4 deletions
7
docs/error-messages/compiler-errors-1/compiler-error-c2116.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch