Skip to content

Commit 638bafc

Browse files
authored
Merge pull request MicrosoftDocs#5565 from Rageking8/structure-error-references-in-range-c2231-c2260
Structure error references in range [C2231, C2260]
2 parents 3d6db73 + c17ce23 commit 638bafc

24 files changed

+175
-110
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2231"
32
title: "Compiler Error C2231"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2231"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2231"]
66
helpviewer_keywords: ["C2231"]
7-
ms.assetid: 677c5c66-d30f-4c3b-bbb9-760858d56477
87
---
98
# Compiler Error C2231
109

11-
'.' : left operand points to 'class-key', use '->'
10+
> '.' : left operand points to 'class-key', use '->'
11+
12+
## Remarks
1213

1314
The operand to the left of the member-selection operation (.) is a pointer instead of a class, structure, or union.
1415

15-
The following sample generates C2231:
16+
## Example
17+
18+
The following example generates C2231:
1619

1720
```c
1821
// C2231.c

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2232"
32
title: "Compiler Error C2232"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2232"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2232"]
66
helpviewer_keywords: ["C2232"]
7-
ms.assetid: 76f302b7-30a7-4a81-9a39-b4edde33b54c
87
---
98
# Compiler Error C2232
109

11-
'->' : left operand has 'class-key' type, use '.'
10+
> '->' : left operand has 'class-key' type, use '.'
11+
12+
## Remarks
1213

1314
The operand to the left of the `->` operator is not a pointer. Use the period (.) operator for a class, structure, or union.
1415

15-
The following sample generates C2232:
16+
## Example
17+
18+
The following example generates C2232:
1619

1720
```c
1821
// C2232.c

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2233"
32
title: "Compiler Error C2233"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2233"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2233"]
66
helpviewer_keywords: ["C2233"]
7-
ms.assetid: 236bdf0b-9607-4f26-a249-d8def0b1333c
87
---
98
# Compiler Error C2233
109

11-
'identifier' : arrays of objects containing zero-size arrays are illegal
10+
> 'identifier' : arrays of objects containing zero-size arrays are illegal
11+
12+
## Remarks
1213

1314
Each object in an array must contain at least one element.
1415

15-
The following sample generates C2233:
16+
## Example
17+
18+
The following example generates C2233:
1619

1720
```cpp
1821
// C2233.cpp

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2234"
32
title: "Compiler Error C2234"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2234"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2234"]
66
helpviewer_keywords: ["C2234"]
7-
ms.assetid: cfa42458-c803-4717-a017-9eca1c0cbfb0
87
---
98
# Compiler Error C2234
109

11-
'name' : arrays of references are illegal
10+
> 'name' : arrays of references are illegal
11+
12+
## Remarks
1213

1314
Because pointers to references are not allowed, arrays of references are not possible.
1415

15-
The following sample generates C2234:
16+
## Example
17+
18+
The following example generates C2234:
1619

1720
```cpp
1821
// C2234.cpp

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2236"
32
title: "Compiler Error C2236"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2236"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2236"]
66
helpviewer_keywords: ["C2236"]
7-
ms.assetid: 0b6771a7-a783-4729-9c3d-7a3339c432cc
87
---
98
# Compiler Error C2236
109

11-
unexpected token 'identifier'. Did you forget a ';'?
10+
> unexpected token 'identifier'. Did you forget a ';'?
11+
12+
## Remarks
1213

1314
The identifier is already defined as a type and cannot be overridden by a user-defined type.
1415

15-
The following sample generates C2236:
16+
## Example
17+
18+
The following example generates C2236:
1619

1720
```cpp
1821
// C2236.cpp

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2238"
32
title: "Compiler Error C2238"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2238"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2238"]
66
helpviewer_keywords: ["C2238"]
7-
ms.assetid: 3d53060c-d6b7-4603-b9cf-d7c65eb64cd2
87
---
98
# Compiler Error C2238
109

11-
unexpected token(s) preceding 'token'
10+
> unexpected token(s) preceding 'token'
11+
12+
## Remarks
1213

1314
An incorrect token was found.
1415

15-
The following sample generates C2238:
16+
## Example
17+
18+
The following example generates C2238:
1619

1720
```cpp
1821
// C2238.cpp

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Compiler Error C2241"
32
title: "Compiler Error C2241"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2241"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2241"]
66
helpviewer_keywords: ["C2241"]
7-
ms.assetid: 2f4e2c2c-b95c-4afe-bbe0-4214cd39d140
87
---
98
# Compiler Error C2241
109

11-
'identifier' : member access is restricted
10+
> 'identifier' : member access is restricted
11+
12+
## Remarks
1213

1314
Code attempts to access a private or protected member.
1415

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2242"
32
title: "Compiler Error C2242"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2242"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2242"]
66
helpviewer_keywords: ["C2242"]
7-
ms.assetid: e1b687ed-4460-4c26-9f7e-c43e65c6dd65
87
---
98
# Compiler Error C2242
109

11-
typedef name cannot follow class/struct/union
10+
> typedef name cannot follow class/struct/union
11+
12+
## Remarks
1213

1314
A **`typedef`** name appears at the end of a qualified name.

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2243"
32
title: "Compiler Error C2243"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2243"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2243"]
66
helpviewer_keywords: ["C2243"]
7-
ms.assetid: b90065bb-d251-4ba9-8b4c-280ee13fa9c0
87
---
98
# Compiler Error C2243
109

11-
'conversion type' conversion from 'type1' to 'type2' exists, but is inaccessible
10+
> 'conversion type' conversion from 'type1' to 'type2' exists, but is inaccessible
11+
12+
## Remarks
1213

1314
Access protection (**`protected`** or **`private`**) prevented conversion from a pointer to a derived class to a pointer to the base class.
1415

15-
The following sample generates C2243:
16+
## Example
17+
18+
The following example generates C2243:
1619

1720
```cpp
1821
// C2243.cpp

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Error C2244"
32
title: "Compiler Error C2244"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2244"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2244"]
66
helpviewer_keywords: ["C2244"]
7-
ms.assetid: d9911c12-ceb5-4f93-ac47-b44a485215c2
87
---
98
# Compiler Error C2244
109

11-
'identifier' : unable to match function definition to an existing declaration
10+
> 'identifier' : unable to match function definition to an existing declaration
11+
12+
## Remarks
1213

1314
An unusual use of the unary + operator was used in front of a function call that did not have parenthesis.
1415

1516
This error only occurs in C++ projects.
1617

17-
The following sample generates C2244:
18+
## Examples
19+
20+
The following example generates C2244:
1821

1922
```cpp
2023
// C2244.cpp

0 commit comments

Comments
 (0)