File tree 3 files changed +2
-41
lines changed
3 files changed +2
-41
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,8 @@ Deprecations and Removals
117
117
removed in language modes prior to C++20. If you are using these features prior to C++20, you will need to
118
118
update to ``-std=c++20 ``.
119
119
120
- - TODO: The relational operators for ``std::chrono::weekday `` will be removed entirely, and the
121
- ``_LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS `` macro that was used to re-enable this extension will be
122
- ignored in LLVM 20.
120
+ - The relational operators for ``std::chrono::weekday `` has been removed entirely, and the
121
+ ``_LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS `` macro is now ignored.
123
122
124
123
- The ``_LIBCPP_ENABLE_REMOVED_ALLOCATOR_CONST `` macro no longer has any effect. ``std::allocator<const T> `` is not
125
124
supported as an extension anymore, please migrate any code that uses e.g. ``std::vector<const T> `` to be
Original file line number Diff line number Diff line change @@ -79,25 +79,6 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const weekday& __lhs, con
79
79
return __lhs.c_encoding () == __rhs.c_encoding ();
80
80
}
81
81
82
- // TODO(LLVM 20): Remove the escape hatch
83
- # ifdef _LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS
84
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator <(const weekday& __lhs, const weekday& __rhs) noexcept {
85
- return __lhs.c_encoding () < __rhs.c_encoding ();
86
- }
87
-
88
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator >(const weekday& __lhs, const weekday& __rhs) noexcept {
89
- return __rhs < __lhs;
90
- }
91
-
92
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator <=(const weekday& __lhs, const weekday& __rhs) noexcept {
93
- return !(__rhs < __lhs);
94
- }
95
-
96
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator >=(const weekday& __lhs, const weekday& __rhs) noexcept {
97
- return !(__lhs < __rhs);
98
- }
99
- # endif // _LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS
100
-
101
82
_LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator +(const weekday& __lhs, const days& __rhs) noexcept {
102
83
auto const __mu = static_cast <long long >(__lhs.c_encoding ()) + __rhs.count ();
103
84
auto const __yr = (__mu >= 0 ? __mu : __mu - 6 ) / 7 ;
Original file line number Diff line number Diff line change @@ -79,25 +79,6 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const weekday& __lhs, con
79
79
return __lhs.c_encoding () == __rhs.c_encoding ();
80
80
}
81
81
82
- // TODO(LLVM 20): Remove the escape hatch
83
- # ifdef _LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS
84
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator <(const weekday& __lhs, const weekday& __rhs) noexcept {
85
- return __lhs.c_encoding () < __rhs.c_encoding ();
86
- }
87
-
88
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator >(const weekday& __lhs, const weekday& __rhs) noexcept {
89
- return __rhs < __lhs;
90
- }
91
-
92
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator <=(const weekday& __lhs, const weekday& __rhs) noexcept {
93
- return !(__rhs < __lhs);
94
- }
95
-
96
- _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator >=(const weekday& __lhs, const weekday& __rhs) noexcept {
97
- return !(__lhs < __rhs);
98
- }
99
- # endif // _LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS
100
-
101
82
_LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator +(const weekday& __lhs, const days& __rhs) noexcept {
102
83
auto const __mu = static_cast <long long >(__lhs.c_encoding ()) + __rhs.count ();
103
84
auto const __yr = (__mu >= 0 ? __mu : __mu - 6 ) / 7 ;
You can’t perform that action at this time.
0 commit comments