Created on 2023-03-27.00:00:00 last changed 19 months ago
Proposed resolution:
This wording is relative to n4944.
Change [iostream.objects.overview]/5 as indicated:
-5- The results of including
<iostream>
in a translation unit shall be as if<iostream>
defined aninstance ofios_base::Init
withstatic storage durationordered initialization ([basic.start.dynamic]). Each C++ library module ([std.modules]) in a hosted implementation shall behave as if it contains an interface unit that defines an unexportedios_base::Init
variable with ordered initialization([basic.start.dynamic]).
[ 2023-05-24; Reflector poll ]
Set priority to 4 after reflector poll.
LWG 3878 specified the effects of importing standard library modules on initialization.
However, the effects of including <iostream>
are not yet precisely specified.
A hostile reading may consider this to allow the ios_base::Init
variable to be
a function-local static variable or an inline variable, which defeats the purpose.
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-05-24 14:33:00 | admin | set | messages: + msg13566 |
2023-03-27 14:46:04 | admin | set | messages: + msg13496 |
2023-03-27 00:00:00 | admin | create |