Skip to content

Commit d676fa2

Browse files
authored
Merge pull request #5703 from Rageking8/structure-error-references-in-range-c3851-c3890
Structure error references in range [C3851, C3890]
2 parents 135ca5a + 6ab213b commit d676fa2

26 files changed

+184
-124
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3851.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: Compiler Error C3851"
32
title: "Compiler Error C3851"
4-
ms.date: "09/05/2018"
3+
description: "Learn more about: Compiler Error C3851"
4+
ms.date: 09/05/2018
55
f1_keywords: ["C3851"]
66
helpviewer_keywords: ["C3851"]
7-
ms.assetid: da30c21c-33aa-4439-8fb3-2f5021ea4985
87
---
98
# Compiler Error C3851
109

@@ -16,7 +15,7 @@ In code compiled as C++, you cannot use a universal character name that represen
1615

1716
## Example
1817

19-
The following samples generate C3851, and show how to fix it:
18+
The following example generates C3851, and show how to fix it:
2019

2120
```cpp
2221
// C3851.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3852.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 C3852"
32
title: "Compiler Error C3852"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3852"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3852"]
66
helpviewer_keywords: ["C3852"]
7-
ms.assetid: 194e5c5e-0dfb-414e-86db-791c11eb610c
87
---
98
# Compiler Error C3852
109

11-
'member' having type 'type': aggregate initialization could not initialize this member
10+
> 'member' having type 'type': aggregate initialization could not initialize this member
11+
12+
## Remarks
1213

1314
An attempt was made to assign a default initialization as part of an aggregate initialization to a data member that cannot receive a default initialization in an aggregate initialization.
1415

15-
The following samples generate C3852:
16+
## Example
17+
18+
The following example generate C3852:
1619

1720
```cpp
1821
// C3852.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3853.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 C3853"
32
title: "Compiler Error C3853"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3853"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3853"]
66
helpviewer_keywords: ["C3853"]
7-
ms.assetid: 5b71805d-52b4-44ec-80ae-37c68d876f6a
87
---
98
# Compiler Error C3853
109

11-
'=': re-initializing a reference or assignment through a reference-to-function is illegal
10+
> '=': re-initializing a reference or assignment through a reference-to-function is illegal
11+
12+
## Remarks
1213

1314
Cannot assign to a reference through a function because functions are not lvalues.
1415

15-
The following samples generate C3853:
16+
## Example
17+
18+
The following example generates C3853:
1619

1720
```cpp
1821
// C3853.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3854.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 C3854"
32
title: "Compiler Error C3854"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3854"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3854"]
66
helpviewer_keywords: ["C3854"]
7-
ms.assetid: 32a9ead0-c6c7-485a-8802-c7b1fe921d3a
87
---
98
# Compiler Error C3854
109

11-
expression to left of '=' evaluates to a function. Cannot assign to a function (a function is not an l-value)
10+
> expression to left of '=' evaluates to a function. Cannot assign to a function (a function is not an l-value)
11+
12+
## Remarks
1213

1314
A reference cannot be reinitialized. Dereferencing a reference to a function yields a function, which is an rvalue, to which you cannot assign. Therefore, you cannot assign through a reference to a function.
1415

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

1720
```cpp
1821
// C3854.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3855.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 C3855"
32
title: "Compiler Error C3855"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3855"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3855"]
66
helpviewer_keywords: ["C3855"]
7-
ms.assetid: ed90f8c0-4154-4243-b066-493913df5727
87
---
98
# Compiler Error C3855
109

11-
'class': type parameter 'param' is incompatible with the declaration
10+
> 'class': type parameter 'param' is incompatible with the declaration
11+
12+
## Remarks
1213

1314
The compiler found nontype template or generic parameters with different names. This can occur when a specified template parameter in the definition of a template specialization is incompatible with its declaration.
1415

15-
The following sample generates C3855:
16+
## Examples
17+
18+
The following example generates C3855:
1619

1720
```cpp
1821
// C3855.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3856.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 C3856"
32
title: "Compiler Error C3856"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3856"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3856"]
66
helpviewer_keywords: ["C3856"]
7-
ms.assetid: 242d9322-c325-4f20-be58-b2be6da56d60
87
---
98
# Compiler Error C3856
109

11-
'type': class is not a class type
10+
> 'type': class is not a class type
11+
12+
## Remarks
1213

1314
The most common cause for this error is when there are more generic or template parameter lists at the point of definition than there were at the point of declaration.
1415

15-
The following sample generates C3856:
16+
## Examples
17+
18+
The following example generates C3856:
1619

1720
```cpp
1821
// C3856.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3857.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 C3857"
32
title: "Compiler Error C3857"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3857"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3857"]
66
helpviewer_keywords: ["C3857"]
7-
ms.assetid: 9f746d1e-9708-4945-bc29-3150d5371d3c
87
---
98
# Compiler Error C3857
109

11-
'type': multiple type parameter lists are not allowed
10+
> 'type': multiple type parameter lists are not allowed
11+
12+
## Remarks
1213

1314
More than one template or generic was specified for the same type, which is not allowed.
1415

15-
The following sample generates C3857:
16+
## Examples
17+
18+
The following example generates C3857:
1619

1720
```cpp
1821
// C3857.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3858.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 C3858"
32
title: "Compiler Error C3858"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3858"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3858"]
66
helpviewer_keywords: ["C3858"]
7-
ms.assetid: 46e178d5-a55f-4ac6-a9dc-561fbcba5c1f
87
---
98
# Compiler Error C3858
109

11-
'type': cannot be redeclared in current scope
10+
> 'type': cannot be redeclared in current scope
11+
12+
## Remarks
1213

1314
The type cannot be declared twice in the same scope.
1415

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

1720
```cpp
1821
// C3858.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3859.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: Compiler Error C3859"
32
title: "Compiler Error C3859"
3+
description: "Learn more about: Compiler Error C3859"
44
ms.date: 02/22/2022
55
f1_keywords: ["C3859"]
66
helpviewer_keywords: ["C3859"]
@@ -25,6 +25,8 @@ The message has one of the following notes:
2525
>PCH: Unable to get the requested block of memory\
2626
>Consider using /Fp to allow the compiler to reserve the memory early
2727
28+
## Remarks
29+
2830
There isn't enough virtual memory allocated for your [precompiled header (PCH)](../../build/creating-precompiled-header-files.md). If your precompiled header uses an explicit `#pragma hdrstop` directive, use the **`/Zm`** compiler flag to specify a larger value for the precompiled header file. Otherwise, consider reducing the number of parallel compilation processes in your build. For more information, see [`/Zm` (Specify precompiled header memory allocation limit)](../../build/reference/zm-specify-precompiled-header-memory-allocation-limit.md).
2931

3032
This diagnostic shows up mostly in two scenarios:

docs/error-messages/compiler-errors-2/compiler-error-c3860.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 C3860"
32
title: "Compiler Error C3860"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3860"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3860"]
66
helpviewer_keywords: ["C3860"]
7-
ms.assetid: 1fb5110d-594e-4f1c-8773-888233af1313
87
---
98
# Compiler Error C3860
109

11-
type argument list following class type name must list parameters in the order used in type parameter list
10+
> type argument list following class type name must list parameters in the order used in type parameter list
11+
12+
## Remarks
1213

1314
A generic or template argument list was ill formed.
1415

15-
The following sample generates C3860:
16+
## Examples
17+
18+
The following example generates C3860:
1619

1720
```cpp
1821
// C3860.cpp

0 commit comments

Comments
 (0)