mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Remove extra backtick in ES.23 (#1453)
This commit is contained in:
@@ -10717,7 +10717,7 @@ Use `={...}` if you really want an `initializer_list<T>`
|
|||||||
|
|
||||||
`={}` gives copy initialization whereas `{}` gives direct initialization.
|
`={}` gives copy initialization whereas `{}` gives direct initialization.
|
||||||
Like the distinction between copy-initialization and direct-initialization itself, this can lead to surprises.
|
Like the distinction between copy-initialization and direct-initialization itself, this can lead to surprises.
|
||||||
`{}` accepts `explicit` constructors; `={}` does not`. For example:
|
`{}` accepts `explicit` constructors; `={}` does not. For example:
|
||||||
|
|
||||||
struct Z { explicit Z() {} };
|
struct Z { explicit Z() {} };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user