Skip to content

C++, support spaceship operator - #8951

Merged
jakobandersen merged 1 commit into
sphinx-doc:masterfrom
jakobandersen:cpp_spaceship
Mar 2, 2021
Merged

jakobandersen merged 1 commit into
sphinx-doc:masterfrom
jakobandersen:cpp_spaceship

Conversation

@jakobandersen

Copy link
Copy Markdown
Contributor

Feature or Bugfix

  • Feature

Purpose

Support the <=> operator added in C++20.

Details

Note that when written in roles the < may need to escaped to disambiguate with xrefs with explicit titles. E.g., :cpp:func:`operator<=>` is an (attempted) reference to = with title operator, but :cpp:func:`operator\<=>` is a reference to operator<=> with implicit title.

Relates

Fixes #8942.

@jakobandersen jakobandersen added type:enhancement enhance or introduce a new feature domains:cpp labels Mar 2, 2021
@jakobandersen jakobandersen added this to the 4.0.0 milestone Mar 2, 2021
@jakobandersen jakobandersen self-assigned this Mar 2, 2021
@jakobandersen
jakobandersen changed the base branch from 3.x to master March 2, 2021 19:29
@jakobandersen
jakobandersen merged commit cba9ed0 into sphinx-doc:master Mar 2, 2021
@jakobandersen
jakobandersen deleted the cpp_spaceship branch March 2, 2021 19:47
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

domains:cpp type:enhancement enhance or introduce a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support C++20's spaceship operator

1 participant