Skip to content

Commit 4e6ce05

Browse files
author
Colin Robertson
committed
Updates per Andrew
1 parent 27475e4 commit 4e6ce05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/overview/cpp-conformance-improvements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ There are many possible fixes:
963963

964964
Starting in Visual Studio 2019 version 16.6, the compiler implements some preexisting C++ warnings for code compiled as C. The following warnings are now enabled at different levels: C4060, C4061, C4062, C4063, C4064, C4065, C4808, and C4809. Warnings C4065 and C4060 are disabled by default in C.
965965

966-
The warnings trigger on missing **`case`** statements, undefined **`enum`**, and bad **`bool`** switches, that is, ones that contain too many cases. For example:
966+
The warnings trigger on missing **`case`** statements, undefined **`enum`**, and bad **`bool`** switches (that is, ones that contain too many cases). For example:
967967

968968
```c
969969
#include <stdbool.h>
@@ -1000,7 +1000,7 @@ Starting in Visual Studio 2019 version 16.6, the behavior of `typedef` declarati
10001000
- non-static data members,
10011001
- member classes,
10021002
- member enumerations,
1003-
- and non-static data member initializations (NSDMIs).
1003+
- and default member initializers.
10041004

10051005
The same restrictions are applied recursively to each nested class. The restriction is meant to ensure the simplicity of structs that have `typedef` names for linkage purposes. They must be simple enough that no linkage calculations are necessary before the compiler gets to the `typedef` name for linkage.
10061006

@@ -1016,7 +1016,7 @@ typedef struct : B { // inheriting from 'B'; ill-formed
10161016
struct U {
10171017
void f(); // nested class has non-data member; ill-formed
10181018
};
1019-
int j = 10; // NSDMI; ill-formed
1019+
int j = 10; // default member initializer; ill-formed
10201020
} S;
10211021
```
10221022

0 commit comments

Comments
 (0)