Add note about explicit

es23-updates
hsutter 7 years ago
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…
Cancel
Save