Section: 184.108.40.206 [time.zone.zonedtime.ctor] Status: C++20 Submitter: Tomasz Kamiński Opened: 2019-06-20 Last modified: 2021-02-25 10:48:01 UTC
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 220.127.116.11 [time.zone.zonedtime.overview], class template zoned_time synopsis, as indicated:
template<class Duration2> zoned_time(const zoned_time<Duration2, TimeZonePtr>& zt)
Modify 18.104.22.168 [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_.