Skip to content

Commit aa5e410

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C3621, C3660]
1 parent 4a99dd5 commit aa5e410

27 files changed

+84
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 02836f78-0cf2-4947-b87e-710187d81014
1010

1111
> 'class' : a class declared as 'keyword' cannot be instantiated
1212
13+
## Remarks
14+
1315
An attempt was made to instantiate a class marked as [abstract](../../extensions/abstract-cpp-component-extensions.md). A class marked as **`abstract`** can be a base class, but it cannot be instantiated.
1416

1517
## Example

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: a0341b45-062a-4f67-beb9-ba74201ed1ed
1010

1111
> 'variable': bit fields are not supported in managed or WinRT types
1212
13+
## Remarks
14+
1315
The use of bit fields is not permitted on variables in a managed or WinRT class.
1416

17+
## Example
18+
1519
The following sample generates C3623:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: eaac6a4f-eb11-4e4d-ab12-124ba995c5cf
1010

1111
> 'type': use of this type requires a reference to assembly 'assembly'
1212
13+
## Remarks
14+
1315
An assembly (reference) needed to compile your code was not specified; pass the assembly to the [#using](../../preprocessor/hash-using-directive-cpp.md) directive.
1416

1517
## Example

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: fdf49f21-d6b1-42f4-9eec-23b04ae8b4aa
1010

1111
> 'native_type': a native type cannot derive from a managed or WinRT type 'type'
1212
13+
## Remarks
14+
1315
A native class cannot inherit from a managed or WinRT class. For more information, see [Classes and Structs](../../extensions/classes-and-structs-cpp-component-extensions.md).
1416

1517
## Example

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 43926e2b-1ba9-4a43-9343-c58449cbb336
1010

1111
> 'keyword': '__event' keyword can only be used on COM interfaces, member functions and data members that are pointers to delegates
1212
13+
## Remarks
14+
1315
A keyword was used incorrectly.
1416

17+
## Example
18+
1519
The following sample generates C3626:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 905ad0a0-8c49-4187-b66e-b375f5a1fae5
1010

1111
> Only a value type can be boxed
1212
13+
## Remarks
14+
1315
Only value classes can be boxed.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 0ff5a4a4-fcc9-47a0-a4d8-8af9cf2815f6
1010

1111
> 'base class' : managed or WinRTclasses only support public inheritance
1212
13+
## Remarks
14+
1315
An attempt was made to use a managed or WinRT class as a [private](../../cpp/private-cpp.md) or [protected](../../cpp/protected-cpp.md) base class. A managed or WinRT class can only be used as a base class with [public](../../cpp/public-cpp.md) access.
1416

17+
## Example
18+
1519
The following sample generates C3628 and shows how to fix it:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 865626a9-98cc-465d-acde-44d4574c019a
1010

1111
> error when processing the token '*token*'
1212
13+
## Remarks
14+
1315
A token in source code couldn't be processed. This error is obsolete in Visual Studio 2022.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 88cbd2d5-6fef-4940-be34-d8cbe816d3da
1010

1111
> 'function': cannot overload managed or WinRT events
1212
13+
## Remarks
14+
1315
A managed or WinRT event cannot be overloaded.
1416

1517
C3631 is only reachable using the obsolete compiler option **/clr:oldSyntax**.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: a04e3217-f5a1-4461-a1db-d69fd096d468
1010

1111
> 'event': illegal style of event for construct
1212
13+
## Remarks
14+
1315
[__event](../../cpp/event.md) declarations are not valid in all constructs.
1416

1517
C3632 is only reachable using the obsolete compiler option **/clr:oldSyntax**.

0 commit comments

Comments
 (0)