mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Add note about explicit
This commit is contained in:
parent
d76404938b
commit
e5440502ea
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user