Skip to content
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

feature/spaceship: Clause 30: Regex #1145

Merged

Conversation

cbezault
Copy link
Contributor

@cbezault cbezault commented Aug 4, 2020

Implement changes required for regex in p1614r2.

Currently I don't rely on comparison operator rewrites because of VSO-900973.

@cbezault cbezault added the spaceship C++20 operator <=> label Aug 4, 2020
@cbezault cbezault requested a review from a team as a code owner August 4, 2020 18:12
Fix bug uncovered by fixed tests.
@cbezault
Copy link
Contributor Author

cbezault commented Aug 6, 2020

It's going to feel so good once that compiler bug is resolved.

@cbezault cbezault requested a review from CaseyCarter August 7, 2020 18:20
Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one "real" comment for the extraneous ; - I think the rest of these are style comments and me asking if anyone has filed an LWG issue that I will probably be the one to file.

inline constexpr bool is_pair<std::pair<A, B>> = true; // TRANSITION, std::pair spaceship not yet implemented
struct OrderedChar {
OrderedChar() = default;
OrderedChar(const char c) : c(c){};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OrderedChar(const char c) : c(c){};
OrderedChar(const char c) : c(c){}

@StephanTLavavej StephanTLavavej self-assigned this Aug 8, 2020
Co-authored-by: Casey Carter <Casey@Carter.net>
@cbezault cbezault added the cxx20 C++20 feature label Aug 10, 2020
@cbezault cbezault force-pushed the feature/spaceship/regex branch from de36ed3 to 8033dc1 Compare August 18, 2020 17:39
@cbezault

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@StephanTLavavej StephanTLavavej removed their assignment Aug 20, 2020
@StephanTLavavej StephanTLavavej changed the title Feature/spaceship/regex feature/spaceship: Clause 30: Regex Aug 20, 2020
@StephanTLavavej StephanTLavavej merged commit fa344bf into microsoft:feature/spaceship Aug 20, 2020
@StephanTLavavej
Copy link
Member

Thanks for implementing this fleet of spaceship operators! 🛸 🛸 🛸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx20 C++20 feature spaceship C++20 operator <=>
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants