mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Remove extra backtick in ES.23 (#1453)
This commit is contained in:
parent
8eea7cef63
commit
1cd545aed5
|
@ -10717,7 +10717,7 @@ Use `={...}` if you really want an `initializer_list<T>`
|
|||
|
||||
`={}` gives copy initialization whereas `{}` gives direct initialization.
|
||||
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() {} };
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user