This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++20 status.
Section: 220.127.116.11 [time.zone.zonedtime.ctor] Status: C++20 Submitter: Tomasz Kamiński Opened: 2019-06-20 Last modified: 2021-02-25
View all other issues in [time.zone.zonedtime.ctor].
View all issues with C++20 status.
zoned_time constructor from
TimeZonePtr> (preserving same time zone, different precision of
representation) is currently marked noexcept. Given that the exposition-only
member tp_ of type sys_time<duration> has essentially type
time_point<system_clock, Duration>, this is incompatible with the
time_point constructor, which is not marked as noexcept.
[2019-07 Issue Prioritization]
Status to Tentatively Ready after five positive votes on the reflector.
This wording is relative to N4820.
Modify 18.104.22.168 [time.zone.zonedtime.overview], class template zoned_time synopsis, as indicated:
template<class Duration2> zoned_time(const zoned_time<Duration2, TimeZonePtr>& zt)
Modify 22.214.171.124 [time.zone.zonedtime.ctor] as indicated:
template<class Duration2> zoned_time(const zoned_time<Duration2, TimeZonePtr>& y)
-9- Requires: Does not participate in overload resolution unless sys_time<Duration2> is implicitly convertible to sys_time<Duration>.-10- Effects: Constructs a zoned_time by initializing zone_ with y.zone_ and tp_ with y.tp_.