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.over] p2 function type vs. pointer to function type #6576

Open
xmh0511 opened this issue Sep 20, 2023 · 0 comments
Open

[over.over] p2 function type vs. pointer to function type #6576

xmh0511 opened this issue Sep 20, 2023 · 0 comments

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented Sep 20, 2023

[over.over] p2

Otherwise, a non-template function with type F is selected for the function type FT of the target type if F (after possibly applying the function pointer conversion ([conv.fctptr])) is identical to FT.

a non-template function with type F implies F is a function type, the function type FT means FT is a function type.

So, consider this phrasing

if F (after possibly applying the function pointer conversion ([conv.fctptr])) is identical to FT.

Why the function pointer conversion needs here? Maybe the intent here is:

If pointer to F is identical to pointer to FT(after possibly applying the function pointer conversion ([conv.fctptr])).

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