From e5440502eaf8b331669f52dc59bc10b35107f0e0 Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 2 May 2019 11:44:31 -0700 Subject: [PATCH] Add note about explicit --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c0547ff..f741ee4 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10675,7 +10675,7 @@ For containers, there is a tradition for using `{...}` for a list of elements an ##### Note -`{}`-initializers do not allow narrowing conversions (and that is usually a good thing). +`{}`-initializers do not allow narrowing conversions (and that is usually a good thing) and allow explicit constructors (which is fine, we're intentionally initializing a new variable). ##### Example