Skip to content

Commit 0734e0b

Browse files
authored
Merge pull request #5685 from Rageking8/structure-error-references-in-range-c3531-c3620
Structure error references in range [C3531, C3620]
2 parents 8de18c4 + ea3337e commit 0734e0b

25 files changed

+143
-98
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3531.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 C3531"
32
title: "Compiler Error C3531"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3531"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3531"]
66
helpviewer_keywords: ["C3531"]
7-
ms.assetid: 2bdb9fdc-9ddf-403e-8b92-02763d434487
87
---
98
# Compiler Error C3531
109

11-
'symbol': a symbol whose type contains 'auto' must have an initializer
10+
> 'symbol': a symbol whose type contains 'auto' must have an initializer
11+
12+
## Remarks
1213

1314
The specified variable does not have an initializer expression.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3532.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 C3532"
32
title: "Compiler Error C3532"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3532"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3532"]
66
helpviewer_keywords: ["C3532"]
7-
ms.assetid: 51067853-eda8-4f59-86e8-8924e16d3a95
87
---
98
# Compiler Error C3532
109

11-
'type': incorrect usage of 'auto'
10+
> 'type': incorrect usage of 'auto'
11+
12+
## Remarks
1213

1314
The indicated type cannot be declared with the **`auto`** keyword. For example, you cannot use the **`auto`** keyword to declare an array or a method return type.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3533.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 C3533"
32
title: "Compiler Error C3533"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3533"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3533"]
66
helpviewer_keywords: ["C3533"]
7-
ms.assetid: a68b1ba5-466e-4190-a1a4-505ccfe548b7
87
---
98
# Compiler Error C3533
109

11-
'type': a parameter cannot have a type that contains 'auto'
10+
> 'type': a parameter cannot have a type that contains 'auto'
11+
12+
## Remarks
1213

1314
A method or template parameter cannot be declared with the **`auto`** keyword if the default [/Zc:auto](../../build/reference/zc-auto-deduce-variable-type.md) compiler option is in effect.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3535.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 C3535"
32
title: "Compiler Error C3535"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3535"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3535"]
66
helpviewer_keywords: ["C3535"]
7-
ms.assetid: 24449c98-f681-484d-a00b-32533dca3a88
87
---
98
# Compiler Error C3535
109

11-
cannot deduce type for 'type1' from 'type2'
10+
> cannot deduce type for 'type1' from 'type2'
11+
12+
## Remarks
1213

1314
The type of the variable declared by the **`auto`** keyword cannot be deduced from the type of the initialization expression. For example, this error occurs if the initialization expression evaluates to **`void`**, which is not a type.
1415

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ helpviewer_keywords: ["C3536"]
77
---
88
# Compiler Error C3536
99

10-
'symbol': cannot be used before it is initialized
10+
> 'symbol': cannot be used before it is initialized
11+
12+
## Remarks
1113

1214
The indicated symbol cannot be used before it is initialized. In practice, this means that a variable cannot be used to initialize itself.
1315

docs/error-messages/compiler-errors-2/compiler-error-c3537.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 C3537"
32
title: "Compiler Error C3537"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3537"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3537"]
66
helpviewer_keywords: ["C3537"]
7-
ms.assetid: f537ebd1-4fb0-4e09-a453-4f38db2c6881
87
---
98
# Compiler Error C3537
109

11-
'type': you cannot cast to a type that contains 'auto'
10+
> 'type': you cannot cast to a type that contains 'auto'
11+
12+
## Remarks
1213

1314
You cannot cast a variable to the indicated type because the type contains the **`auto`** keyword and the default [/Zc:auto](../../build/reference/zc-auto-deduce-variable-type.md) compiler option is in effect.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3538.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 C3538"
32
title: "Compiler Error C3538"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3538"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3538"]
66
helpviewer_keywords: ["C3538"]
7-
ms.assetid: ef3698a5-7356-4c62-b9af-5d3a4baed958
87
---
98
# Compiler Error C3538
109

11-
in a declarator-list 'auto' must always deduce to the same type
10+
> in a declarator-list 'auto' must always deduce to the same type
11+
12+
## Remarks
1213

1314
All the declared variables in a declaration list do not resolve to the same type.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3539.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 C3539"
32
title: "Compiler Error C3539"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3539"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3539"]
66
helpviewer_keywords: ["C3539"]
7-
ms.assetid: 34a33a0f-d1b6-498f-b312-ffad2d4799b3
87
---
98
# Compiler Error C3539
109

11-
'type': a template-argument cannot be a type that contains 'auto'
10+
> 'type': a template-argument cannot be a type that contains 'auto'
11+
12+
## Remarks
1213

1314
The indicated template argument type cannot contain a usage of the **`auto`** keyword.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3540.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 C3540"
32
title: "Compiler Error C3540"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3540"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3540"]
66
helpviewer_keywords: ["C3540"]
7-
ms.assetid: 3c0c959c-e3b7-40eb-b922-ccac44bd9d85
87
---
98
# Compiler Error C3540
109

11-
'type': sizeof cannot be applied to a type that contains 'auto'
10+
> 'type': sizeof cannot be applied to a type that contains 'auto'
11+
12+
## Remarks
1213

1314
The [sizeof](../../cpp/sizeof-operator.md) operator cannot be applied to the indicated type because it contains the **`auto`** specifier.
1415

docs/error-messages/compiler-errors-2/compiler-error-c3541.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 C3541"
32
title: "Compiler Error C3541"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3541"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3541"]
66
helpviewer_keywords: ["C3541"]
7-
ms.assetid: 252cfd4c-5fd2-415e-a17d-6b0c254350db
87
---
98
# Compiler Error C3541
109

11-
'type': typeid cannot be applied to a type that contains 'auto'
10+
> 'type': typeid cannot be applied to a type that contains 'auto'
11+
12+
## Remarks
1213

1314
The [typeid](../../extensions/typeid-cpp-component-extensions.md) operator cannot be applied to the indicated type because it contains the **`auto`** specifier.
1415

0 commit comments

Comments
 (0)