-
Notifications
You must be signed in to change notification settings - Fork 769
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
[range.utility.conv.general] Should reservable-container
and container-insertable
be concepts?
#5328
Comments
reserve-container
_ and _container-insertable
_ be concepts?
reserve-container
_ and _container-insertable
_ be concepts?reserve-container
and container-insertable
be concepts?
I agree that prepending |
I know, but exposition only |
That makes sense. |
In the original paper p1206r7, the description of
So I suspect it should be a concept in nature, and the opinion of the author of the paper may be required. |
No, they should not be No, we don't want them to be concepts. They were concepts in an earlier revision of the paper and it was changed intentionally by LWG review. The reason it's a variable template not a concept is because we don't want the semantic requirements of the constraints to result in UB if violated. It's a purely syntactic check. |
Maybe we should remove it from them too. Looks like this affects is-derived-from-view-interface and is-initializer-list specifically. |
No, they should not be |
Indeed, see #4625. |
Do we need to rename |
reserve-container
and container-insertable
be concepts?reservable-container
and container-insertable
be concepts?
No. |
I'm not seeing any more open issues here. Closing. |
In [range.utility.conv.general],
reservable-container
andcontainer-insertable
are defined asI don't understand why they lack
inline
, and it seems to me that defining them as concept is more consistent with the name, since theinline constexpr bool
variables usually start withis_
.The text was updated successfully, but these errors were encountered: