Skip to content

[meta] reflect_constant_array of an empty range returns const array<T,0>#8361

Merged
hanickadot merged 1 commit into
cplusplus:hana-reflect_constant_array-const-arrayfrom
hanickadot:hana-reflect_constant_array-const-array
Oct 24, 2025
Merged

[meta] reflect_constant_array of an empty range returns const array<T,0>#8361
hanickadot merged 1 commit into
cplusplus:hana-reflect_constant_array-const-arrayfrom
hanickadot:hana-reflect_constant_array-const-array

Conversation

@hanickadot

Copy link
Copy Markdown
Contributor

Marek Poláček asked in SG7 Mattermost if it should return const or not, I think for consistency it should be. If others agree this is PR fixing it.

@jwakely

jwakely commented Oct 24, 2025

Copy link
Copy Markdown
Member

LWG discussed this in telecon and agreed with the change. https://eel.is/c++draft/temp.param#13.sentence-1 says the object has a const type.

@hanickadot hanickadot merged commit d3db41e into cplusplus:hana-reflect_constant_array-const-array Oct 24, 2025
2 checks passed
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.

2 participants