Add note about explicit

This commit is contained in:
hsutter 2019-05-02 11:44:31 -07:00
parent d76404938b
commit e5440502ea

View File

@ -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