mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-16 20:37:03 +03:00
Add note about explicit
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user