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
[basic.def.odr] p10 What does function definition scope mean in this current draft? #5406
Comments
@opensdh , replacing this with "function parameter scope" sounds reasonable. What do you think? |
The example plainly thinks that there is some distinction (compare |
@frederick-vs-ja "function definition scope" had been removed in P1787. P1787 seems to be invented after P0588R1? |
Yes, you're right. I just remembered it wrong. Except that "function definition scope" appears in [basic.def.odr] p10, it doesn't appear in other subclauses anymore. If I remember correctly, "function definition scope" hasn't been defined since c++17(or earlier version). From the literal meaning, it intends to refer to a function parameter scope, which contains any scope introduced in the function definition. |
[basic.def.odr] p10 says
And the comment in the example after this rule also refers to "function definition scope"
In the subclause [basic.scope], we do not define "function definition scope", we just have function parameter scope. Does "function definition scope" intend to refer to function parameter scope instead?
The text was updated successfully, but these errors were encountered: