Skip to content

Use C++20 "spaceship" operator - #3471

Merged
dschwoerer merged 2 commits into
nextfrom
spaceship-operator
Aug 24, 2026
Merged

Use C++20 "spaceship" operator#3471
dschwoerer merged 2 commits into
nextfrom
spaceship-operator

Conversation

@ZedThree

Copy link
Copy Markdown
Member

C++20 can now synthesise all the relational operators from operator<=> (and operator== if <=> is not = default)

@ZedThree
ZedThree requested a review from bendudson August 21, 2026 16:58

@bendudson bendudson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice bit of tidying. Thanks!

@dschwoerer
dschwoerer merged commit eed8487 into next Aug 24, 2026
23 checks passed
@dschwoerer
dschwoerer deleted the spaceship-operator branch August 24, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants