[llvm-branch-commits] [libcxx] [libc++][TZDB] Finishes zoned_time member functions. (PR #95026)
Louis Dionne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 9 08:52:15 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
----------------
ldionne wrote:
```suggestion
// Assigning a non-existent or ambiguous time will throw and not satisfy
```
Can you file a LWG issue about this?
https://github.com/llvm/llvm-project/pull/95026
More information about the llvm-branch-commits
mailing list