mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fixed a typo within ES.23
This commit is contained in:
@@ -10508,7 +10508,7 @@ The C++17 rules are somewhat less surprising:
|
|||||||
auto x2 = {7}; // x2 is an initializer_list<int> with an element 7
|
auto x2 = {7}; // x2 is an initializer_list<int> with an element 7
|
||||||
|
|
||||||
auto x11 {7, 8}; // error: two initializers
|
auto x11 {7, 8}; // error: two initializers
|
||||||
auto x22 = {7, 8}; // x2 is an initializer_list<int> with elements 7 and 8
|
auto x22 = {7, 8}; // x22 is an initializer_list<int> with elements 7 and 8
|
||||||
|
|
||||||
So use `={...}` if you really want an `initializer_list<T>`
|
So use `={...}` if you really want an `initializer_list<T>`
|
||||||
|
|
||||||
|
|||||||
@@ -621,6 +621,7 @@ WG21
|
|||||||
'widen'
|
'widen'
|
||||||
x1
|
x1
|
||||||
x2
|
x2
|
||||||
|
x22
|
||||||
xmax
|
xmax
|
||||||
xor
|
xor
|
||||||
Xs
|
Xs
|
||||||
|
|||||||
Reference in New Issue
Block a user