mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Addressing issue #51
This commit is contained in:
@@ -6667,7 +6667,7 @@ In each case, we save writing a longish, hard-to-remember type that the compiler
|
|||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
auto lst = { 1, 2, 3 }; // lst is an initializer list (obviously)
|
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:
|
**Note**: When concepts become available, we can (and should) be more specific about the type we are deducing:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user