mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +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
|
##### 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
|
##### Example
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user