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

[expr.call] [dcl.fct] Move return type requiremens #4113

Merged
merged 1 commit into from Mar 15, 2021

Conversation

languagelawyer
Copy link
Contributor

An array element type is constrained by [dcl.array]/4:

U is called the array element type; this type shall not be a placeholder type ([dcl.spec.auto]), a reference type, a function type, an array of unknown bound, or cv void.

jensmaurer
jensmaurer previously approved these changes Aug 17, 2020
@languagelawyer
Copy link
Contributor Author

It is funny that this removes prohibition on array return type and it was approved as an editorial change

source/declarations.tex Outdated Show resolved Hide resolved
@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 15, 2021

@jensmaurer: do you think this is ready to go? I would perhaps like a more detailed commit message explaining why the big deletion is warranted.

@jensmaurer
Copy link
Member

@tkoeppe: I think this is ready to go. The "array of function" prohibition is in [dcl.array] p4. The rest is just fluff / wordiness.

I'm merging it and fixing the commit description.

@jensmaurer jensmaurer merged commit fab6f7f into cplusplus:master Mar 15, 2021
@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 15, 2021

Thanks, @jensmaurer!

@languagelawyer languagelawyer deleted the returntypedescr branch March 15, 2021 22:04
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

Successfully merging this pull request may close these issues.

None yet

4 participants