[SUGGESTION] Requires clause for aliases #640
Replies: 4 comments 2 replies
-
This is better dealt with after #486. A test: https://cpp2.godbolt.org/z/bxsvexdxr.
|
Beta Was this translation helpful? Give feedback.
-
Now I want this to replace the variable
with the alias
which currently errors with |
Beta Was this translation helpful? Give feedback.
-
Thanks! I see that currently alias declarations don't support requires clauses at all, and then when I add them I'll require Then this will work as you expected:
and this will require the parentheses:
and this will mean the second
|
Beta Was this translation helpful? Give feedback.
-
Resolved by commit b1c03f2. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A natural extension to 63efa6e.
Will your feature suggestion eliminate X% of security vulnerabilities of a given kind in current C++ code? No.
Will your feature suggestion automate or eliminate X% of current C++ guidance literature?
(Make it possible to) make the default:
No longer teach:
enable_if
Describe alternatives you've considered.
https://cpp2.godbolt.org/z/Mr9TMo7xG:
Beta Was this translation helpful? Give feedback.
All reactions