Skip to content

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

@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.

4 participants