Closed tomaszkam closed 5 years ago
Discussion:
The zoned_time
constructor from zoned_time<Duration2, TimeZonePtr>
(preserving same time zone, different precision of representation) is current marked noexcept. This is incompatible with invoked time_point
constructor, that is not marked as noexcept.
Proposed wording: Apply the following changes to [time.zone.zonedtime.overview]:
template<class Duration2> zoned_time(const zoned_time<Duration2, TimeZonePtr>& zt)noexcept;
Apply the following changes to [time.zone.zonedtime.ctor]:
template<class Duration2> zoned_time(const zoned_time<Duration2, TimeZonePtr>& zt)noexcept;
Remarks: Does not participate in overload resolution unless systime
is implicitly convertible to systime
.
Effects: Constructs a zonedtime by initializing zone
with y.zone
and tp
with y.tp_
.
Orginal comment:
E-mail conversation: [isocpp-lib] zoned_time issues