tomaszkam / date

A date and time library based on the C++11/14/17 <chrono> header
Other
0 stars 0 forks source link

[LWG3224] zoned_time constructor from TimeZonePtr need to specify initialization of tp #30

Closed tomaszkam closed 5 years ago

tomaszkam commented 5 years ago

Original comment:

[time.zone.zonedtime.ctor]p6 should say that we default construct tp_.

tomaszkam commented 5 years ago

Discussion: The zonedtime(TimeZonePtr z) does not specify how the tp subelement is initialized. It should be constient with zoned_time(stringview) that default initialize tp,

Proposed wording: Change the specification of zoned_time(TimeZonePtr z) from [time.zone.zonedtime.ctor] as follows:

explicit zoned_time(TimeZonePtr z);

Requires: z refers to a time zone. Effects: Constructs a zoned­time by initializing zone­ with std::move(z) and default constructing tp_­.