So far, the thread::id comparators were implemented as hidden friends.
This was non-conforming and lead to incorrectly rejected C++ code, as
can be seen in the linked Github issue.
Details
Details
- Reviewers
Mordante ldionne philnik - Group Reviewers
Restricted Project - Commits
- rG2d34cb74b525: [libc++] Implement `thread::id` comparators as free functions
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for fixing this bug!
Can you mention this change to the API changes of the release documentation?
libcxx/include/__threading_support | ||
---|---|---|
619 | Is there a reason to make all 6 of them friends? I would only operator== and operator< to be a friend. | |
libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp | ||
36 | Nice! |
Comment Actions
Can you mention this change to the API changes of the release documentation?
Afaict, there is no "API changes" in the release notes, only "ABI changes". I added the item to the "Improvements" section instead
Comment Actions
We used to have an API section, for example https://releases.llvm.org/14.0.0/projects/libcxx/docs/ReleaseNotes.html#api-changes
Can you re-add that section and move the new documentation there?
LGTM after moving the documentation.
Is there a reason to make all 6 of them friends? I would only operator== and operator< to be a friend.