Skip to content

Commit 505dbbc

Browse files
authored
Acrolinx fix
1 parent d75c398 commit 505dbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/overview/2017/cpp-conformance-improvements-2017.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ To fix the problem, either change the `f(S)` signature or remove it.
10421042
10431043
### C5038: order of initialization in initializer lists
10441044
1045-
Class members are initialized in the order they are declared, not the order they appear in initializer lists. Previous versions of the compiler did not warn when the order of the initializer list differed from the order of declaration. This could lead to undefined runtime behavior if the intialization of one member depended on another member in the list already being initialized. In the following example, Visual Studio 2017 version 15.3 (with **/Wall**) raises "warning C5038: data member 'A::y' will be initialized after data member 'A::x'":
1045+
Class members are initialized in the order they are declared, not the order they appear in initializer lists. Previous versions of the compiler did not warn when the order of the initializer list differed from the order of declaration. This could lead to undefined runtime behavior if the initialization of one member depended on another member in the list already being initialized. In the following example, Visual Studio 2017 version 15.3 (with **/Wall**) raises "warning C5038: data member 'A::y' will be initialized after data member 'A::x'":
10461046
10471047
```cpp
10481048
struct A

0 commit comments

Comments
 (0)