-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove obsolete conditional compilation from <compare> #1049
Conversation
Now that EDG has caught up to `__cpp_impl_three_way_comparison == 201907`, we no longer need "downlevel" compatibility for C++20 compilers that either don't define the feature-test macro or define it to a lesser value.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
(Re-adding the Spaceship project as this is relevant, although it's targeted at |
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.
Incrementally approving - only test changes needed now. Really like this improvement!
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.
😺
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
... for enregistration, to improve performance. Per a suggestion from Statementreply in the discussion at microsoft#1049 (comment).
Co-authored-by: statementreply <[email protected]>
... for enregistration, to improve performance. Per a suggestion from Statementreply in the discussion at microsoft#1049 (comment).
Thanks @statementreply for finding this correctness issue before the C++20 ABI locked down, and for improving the fix. Thanks @CaseyCarter for the fix and cleanup, and for helping with the compiler bug investigation. 😸 |
... for enregistration, to improve performance. Per a suggestion from Statementreply in the discussion at microsoft#1049 (comment).
feature/spaceship: Merge #1049 (fix <compare> and simplify guards)
* Break <compare> ABI again, and fix microsoft#1050. * Remove obsolete conditional compilation from <compare>. Co-authored-by: statementreply <[email protected]> Co-authored-by: Stephan T. Lavavej <[email protected]>
... for enregistration, to improve performance. Per a suggestion from Statementreply in the discussion at #1049 (comment).
Now that EDG has caught up to
__cpp_impl_three_way_comparison == 201907
, we no longer need "downlevel" compatibility for C++20 compilers that either don't define the feature-test macro or define it to a lesser value. We can now assume that_HAS_CXX20
implies__cpp_impl_three_way_comparison >= 201907
.Also fixes #1050.