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
friend [[nodiscard]] #6052
Comments
Not editorial, please see https://github.com/cplusplus/draft/wiki/How-to-tell-if-an-issue-is-editorial |
I see. Where should I submit this?
Thanks,
Robert
On Jan 18, 2023, at 9:43 AM, Jonathan Wakely ***@***.***> wrote:
Not editorial, please see https://github.com/cplusplus/draft/wiki/How-to-tell-if-an-issue-is-editorial
—
Reply to this email directly, view it on GitHub<#6052 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5KLPJ527J6JC5J7JYTUMXDWS76P3ANCNFSM6AAAAAAT7FEVJU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
std-discussion makes sense, I think. |
Thank you!
Robert
On Jan 18, 2023, at 9:46 AM, Jonathan Wakely ***@***.***> wrote:
std-discussion makes sense, I think.
—
Reply to this email directly, view it on GitHub<#6052 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5KLPJ2IRFZ7JINW6IZEFGLWS764VANCNFSM6AAAAAAT7FEVJU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Please read https://isocpp.org/std/submit-a-proposal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 <stop_token>:
[[nodiscard]] friend bool operator==(const stop_token& lhs, const stop_token& rhs) noexcept;
I would have thought that this should be:
friend [[nodiscard]] bool operator==(const stop_token& lhs, const stop_token& rhs) noexcept;
i.e. the attribute pertains to the function, not to the friend declaration,
but I was told that an attribute cannot appear in this position,
hence it must be as it is in <stop_token>.
Perhaps the grammar should be amended to allow an attribute in this position?
What do you think?
Thank you,
Robert Schwartz
The text was updated successfully, but these errors were encountered: