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

[over.match.oper] p3 The "rewritten" is used in different meanings #4835

Open
xmh0511 opened this issue Aug 23, 2021 · 0 comments
Open

[over.match.oper] p3 The "rewritten" is used in different meanings #4835

xmh0511 opened this issue Aug 23, 2021 · 0 comments

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented Aug 23, 2021

For the operators =, [], or ->, the set of non-member candidates is empty; otherwise, it includes the result of unqualified lookup for operator@ in the rewritten function call ([basic.lookup.unqual], [basic.lookup.argdep]), ignoring all member functions.

The wording "rewritten" is basically associated with "rewritten candidates". The use of it in the above bullet seems to make misleading. In the older version, the corresponding wording is that

The set of non-member candidates is the result of the unqualified lookup of operator@ in the context of the expression according to the usual rules for name lookup in unqualified function calls ([basic.lookup.argdep]) except that all member functions are ignored.

Presumably, the modification is concerned to make the lookup for it as if it is applied to a function call whose postfix expression is an unqualified-id. Could we say that to make the meaning unambiguous?

For the operators =, [], or ->, the set of non-member candidates is empty; otherwise, it includes the result of unqualified lookup for operator@ in the rewritten transformed non-member function call ([basic.lookup.unqual], [basic.lookup.argdep]), ignoring all member functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant