[libcxx-commits] [libcxx] [libc++][TZDB] Finishes zoned_time member functions. (PR #95026)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 9 22:49:06 PDT 2024
================
@@ -147,8 +148,29 @@ class zoned_time {
} && is_convertible_v<sys_time<_Duration2>, sys_time<_Duration>>)
: zoned_time{__traits::locate_zone(__name), __zt, __c} {}
+ _LIBCPP_HIDE_FROM_ABI zoned_time& operator=(const sys_time<_Duration>& __tp) {
+ __tp_ = __tp;
+ return *this;
+ }
+
+ _LIBCPP_HIDE_FROM_ABI zoned_time& operator=(const local_time<_Duration>& __tp) {
+ // TODO TZDB This seems wrong.
+ // Assigning a non-existant or abiguous time will throw and not satisfy
----------------
mordante wrote:
As mentioned I like to write a paper for all the issues found instead of a set of LWG issues.
https://github.com/llvm/llvm-project/pull/95026
More information about the libcxx-commits
mailing list