[libcxx-commits] [libcxx] [libc++][chrono] Remove non-standard relational operators for `std::chrono::weekday` (PR #98730)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 13 04:59:56 PDT 2024
================
@@ -134,6 +134,12 @@ Deprecations and Removals
`std-allocator-const <https://clang.llvm.org/extra/clang-tidy/checks/portability/std-allocator-const.html>`
enabled.
+- libc++ no longer supports relational comparison for ``std::chrono::weekday``. The relational comparison operators were
+ provided as an undocumented extension. If you were using relational comparison on ``std::chrono::weekday``, compare
+ the results of ``c_encoding()`` or ``iso_encoding()`` instead. The
+ ``_LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS`` macro can be defined to temporarily re-enable this extension
+ as folks transition their code. This macro will be honored for one released and ignored starting in LLVM 20.
----------------
mordante wrote:
Let's remove the folks part, it does not fit the style of the libc++ release notes.
```suggestion
``_LIBCPP_ENABLE_REMOVED_WEEKDAY_RELATIONAL_OPERATORS`` macro can be defined to temporarily re-enable this extension.
This macro will be honored for one released and ignored starting in LLVM 20.
```
https://github.com/llvm/llvm-project/pull/98730
More information about the libcxx-commits
mailing list