Fix grammar in I.22

This commit is contained in:
Matthias Kluwe 2015-11-24 18:34:56 +01:00
parent d144707dab
commit 66ca2b5f6a

View File

@ -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