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
(primary-expression && ...) in a requires-clause #6051
Comments
This is not an editorial question, please use the std-discussion forum instead: |
N.B. I've edited your original post to add markdown formatting, so it's rendered correctly, without <iterator> being treated as HTML markup. |
Will do, and thank you.
Robert
On Jan 18, 2023, at 9:36 AM, Jonathan Wakely ***@***.***> wrote:
This is not an editorial question, please use the std-discussion forum instead:
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
—
Reply to this email directly, view it on GitHub<#6051 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5KLPJ2HV7VMN2MXWR6RHADWS75V3ANCNFSM6AAAAAAT7E6KR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
To save you the time of going to std-discussion, you're misunderstanding. Those are both a fold-expression in the grammar, see [expr.prim.fold]. You need to consider the whole expression, it's not ( primary-expression && |
I didn't realize that. Thank you!
Robert
On Jan 18, 2023, at 9:39 AM, Jonathan Wakely ***@***.***> wrote:
N.B. I've edited your original post to add markdown formatting, so it's rendered correctly, without <iterator> being treated as HTML markup.
—
Reply to this email directly, view it on GitHub<#6051 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5KLPJ4JWP7GDFOUHGPZVD3WS76BVANCNFSM6AAAAAAT7E6KR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Aha! Now I see. Thank you so much for explaining that!
Warm regards,
Robert
On Jan 18, 2023, at 9:42 AM, Jonathan Wakely ***@***.***> wrote:
Am I misunderstanding something, or is this an error?
To save you the time of going to std-discussion, you're misunderstanding. Those are both a fold-expression in the grammar, see [expr.prim.fold]. You need to consider the whole expression, it's not ( primary-expression && ... ) it's all just a fold-expression.
—
Reply to this email directly, view it on GitHub<#6051 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5KLPJ523WO4CWWZKTSM52DWS76L3ANCNFSM6AAAAAAT7E6KR4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello,
Today I am making my first posts to this group. Please forgive me if I make mistakes. Thank you.
Here is the context:
Header
<iterator>
:Header
<variant>
:A requires-clause has the following grammar:
requires-clause:
requires constraint-logical-or-expression
constraint-logical-or-expression:
constraint-logical-and-expression
constraint-logical-or-expression || constraint-logical-and-expression
constraint-logical-and-expression:
primary-expression
constraint-logical-and-expression && primary-expression
In
<iterator>
, "(indirectly_readable<Is> && ...)
", I understand "indirectly_readable<Is>
" is a primary-expression, but "..." is not.In
<variant>
, "(three_way_comparable<Types> && ...)
", I understand "three_way_comparable<Types>
" is a primary-expression, but "..." is not.Am I misunderstanding something, or is this an error?
Thank you,
Robert Schwartz
The text was updated successfully, but these errors were encountered: