mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix grammar in I.22
This commit is contained in:
parent
d144707dab
commit
66ca2b5f6a
|
@ -1596,8 +1596,8 @@ Complex initialization can lead to undefined order of execution.
|
||||||
|
|
||||||
const X x = g(y); // read y; write x
|
const X x = g(y); // read y; write x
|
||||||
|
|
||||||
Since `x` and `y` are in different translation units the order of calls to `f()` and `g()` are undefined;
|
Since `x` and `y` are in different translation units the order of calls to `f()` and `g()` is undefined;
|
||||||
once will access and uninitialized `const`.
|
one will access an uninitialized `const`.
|
||||||
This particular example shows that the order-of-initialization problem for global (namespace scope) objects is not limited to global *variables*.
|
This particular example shows that the order-of-initialization problem for global (namespace scope) objects is not limited to global *variables*.
|
||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
Loading…
Reference in New Issue
Block a user