mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Addressing issue #51
This commit is contained in:
parent
f974ce87fd
commit
bb95e9839d
@ -6667,7 +6667,7 @@ In each case, we save writing a longish, hard-to-remember type that the compiler
|
||||
**Example**:
|
||||
|
||||
auto lst = { 1, 2, 3 }; // lst is an initializer list (obviously)
|
||||
auto x = {1}; // x is an int (after correction of the C++14 standard; initializer_list in C++11)
|
||||
auto x{1}; // x is an int (after correction of the C++14 standard; initializer_list in C++11)
|
||||
|
||||
**Note**: When concepts become available, we can (and should) be more specific about the type we are deducing:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user