From 42bbbf6a2da1bf524025e3a76644575bf1a73f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20K=C3=A9ri?= Date: Mon, 26 Oct 2015 10:08:43 +0100 Subject: [PATCH] ES.23: two corrected typos in code example --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index a4b1a23..9249f0d 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7768,10 +7768,10 @@ For containers, there is a tradition for using `{...}` for a list of elements an Initialization of a variable declared `auto` with a single value `{v}` surprising results until recently: auto x1 {7}; // x1 is an int with the value 7 - auto x2 = {7}; // x2 is an initializer_int with an element 7 + auto x2 = {7}; // x2 is an initializer_list with an element 7 auto x11 {7, 8}; // error: two initializers - auto x22 = {7, 8}; // x2 is an initializer_int with elements 7 and 8 + auto x22 = {7, 8}; // x2 is an initializer_list with elements 7 and 8 ##### Exception