-
Notifications
You must be signed in to change notification settings - Fork 15k
[libc++] P2944R3: Constrained comparisons - optional
#144249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
philnik777
merged 34 commits into
llvm:main
from
H-G-Hristov:hgh/libcxx/P2944R3-optional-constrained-equality-part_2
Jul 15, 2025
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
61e16a8
[libc++] P2944R3: Constrained comparisions - the `optional` and `refe…
H-G-Hristov 37b9041
NFC refactoring of `std::expected` tests
H-G-Hristov 47b9765
Tests + fixes
H-G-Hristov 58149a6
Cleanup
H-G-Hristov 4e3c8c6
Refactorings
H-G-Hristov e94dd67
Fixed formatting
H-G-Hristov ab801b4
Include generator script results
H-G-Hristov 77fb360
Try to fix CI
H-G-Hristov f0bfc2b
Update libcxx/test/std/utilities/utility/pairs/pairs.spec/comparison.…
H-G-Hristov 35c0631
Try to fix CI
H-G-Hristov 4f009b5
Fix `<optional>`
H-G-Hristov f81457f
Try to fix CI
H-G-Hristov 7181c8c
More fixes
H-G-Hristov 3a63752
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov b181c67
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov c41d7c9
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov 046b20b
Cleanup
H-G-Hristov 3f92762
Cleanup
H-G-Hristov 0fa7e0b
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov 3f119ca
Addressed review comments
H-G-Hristov b1bed3d
Fix CI
H-G-Hristov a1dd21d
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov 1f314a7
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov 1042f68
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov db31473
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov 1cd741d
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov ec658e9
Review comments
H-G-Hristov 1123f57
Implemented `__is_core_convertible_v`
H-G-Hristov 6089762
Try to fix CI
H-G-Hristov 98e1413
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
H-G-Hristov cbe7f92
Apply suggestions from code review
Zingam eedb32f
Update libcxx/include/__type_traits/is_core_convertible.h
Zingam 4d9faa5
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
Zingam 61b03bd
Merge branch 'main' into hgh/libcxx/P2944R3-optional-constrained-equa…
Zingam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit unusual to just use an alias template instead of inheritance from the
bool_constant. But this should be fine since no compilation failures happens, and is possibly better due to reduction of instantiation.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the difference between inheritance and aliasing seems to be laziness of instantiation. If it's confirmed that shortcut instantiation is not so that desired, we can even remove
__is_core_convertibleand consistently use__is_core_convertible_v. (The changes should belong to another PR, though.)