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

C++, parse (trailing) requires clauses #7670

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

jakobandersen
Copy link
Contributor

Feature or Bugfix

  • Feature

Purpose

C++20 allows explicit constraints on function templates with requires clauses. They can either be just after the template parameter list or trailing after the whole declaration. The constraints are taken into account on overload resolution so they are mangled into the ID of declarations.

Relates

Fixes #7295

@jakobandersen jakobandersen merged commit 93d6b1b into sphinx-doc:3.x Jun 2, 2020
@jakobandersen jakobandersen deleted the cpp_requires_clause branch June 2, 2020 17:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 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.

C++20 requires clause not supported
1 participant