Skip to content

Commit ac703ef

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C7000, C7999]
1 parent 2643b99 commit ac703ef

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ helpviewer_keywords: ["C7510"]
1010
> '*type-name*': use of dependent template name must be prefixed with 'template'\
1111
> '*type-name*': use of dependent type name must be prefixed with 'typename'
1212
13-
In [`/permissive-`](../../build/reference/permissive-standards-conformance.md) mode, the compiler requires the **`template`** keyword to precede a template name when it comes after a dependent [`nested-name-specifier`](../../cpp/scope-resolution-operator.md). Similar rules hold for types qualified by **`typename`**.
14-
1513
## Remarks
1614

15+
In [`/permissive-`](../../build/reference/permissive-standards-conformance.md) mode, the compiler requires the **`template`** keyword to precede a template name when it comes after a dependent [`nested-name-specifier`](../../cpp/scope-resolution-operator.md). Similar rules hold for types qualified by **`typename`**.
16+
1717
Compiler behavior has changed starting in Visual Studio 2017 version 15.8 under [`/permissive-`](../../build/reference/permissive-standards-conformance.md) mode. The compiler requires the **`template`** or **`typename`** keyword to precede a template or type name when it comes after a dependent *`nested-name-specifier`*. For more information, see [Name resolution for dependent types](../../cpp/name-resolution-for-dependent-types.md) and [Templates and name resolution](../../cpp/templates-and-name-resolution.md).
1818

1919
## Examples

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ helpviewer_keywords: ["C7536"]
99

1010
> ifc failed integrity checks. Expected SHA2: '*hash-value*'
1111
12+
## Remarks
13+
1214
The compiler raises C7536 whenever the *`.ifc`* file has been tampered with. The header of the module interface contains an SHA2 hash of the contents below it. On import, the *`.ifc`* file is hashed, then checked against the hash provided in the header. If these don't match, error C7536 is raised:
1315

1416
```Output

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ helpviewer_keywords: ["C7742"]
1010

1111
> *Identifier*: a forward declaration of an enum can only use a simple identifier
1212
13+
## Remarks
14+
1315
The C++ Standard doesn't allow declaring an opaque enumeration using a qualified-id. An opaque enum declaration specifies the name and the underlying type, but doesn't list the enumerators or their values.
1416

17+
## Example
18+
1519
The following example generates C7742:
1620

1721
```cpp

0 commit comments

Comments
 (0)