From bb95e9839dbe4cdafe43a4784c3295652e117db3 Mon Sep 17 00:00:00 2001 From: Andrew Pardoe Date: Sat, 26 Sep 2015 18:10:54 -0700 Subject: [PATCH] Addressing issue #51 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5ecf483..73524b9 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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: