Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C++] Support requires-clause on
type
, class
, 'member' declarations
Previously a C++20 requires-clause was only supported on `function` declarations. However, the C++ standard allows a require-clause on class/union templates, alias templates, and variable templates. Additionally: - This adds support for template parameters on unions. - This adds support for trailing requires clauses on functions with a template prefix. This is allowed by C++20 for non-template members of class templates.
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters