-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<vector>
: assign_range()
is missing Mandates
#5076
Comments
I'm sure I missed enforcing this requirement on the type and value category of the assignment expression for all of the |
I believe our assignment expressions are fine: Line 1388 in 25dc2b7
Line 1446 in 25dc2b7
Line 878 in 25dc2b7
Line 1331 in 25dc2b7
Line 946 in 25dc2b7
For Line 3291 in 25dc2b7
Line 3314 in 25dc2b7
Note that |
|
Also, I think when we use |
<vector>
: assign_range()
is missing __Mandates__<vector>
: assign_range()
is missing Mandates
We talked about this at the weekly maintainer meeting and we think that adding a bunch of |
Note that |
Speaking for only myself, I'm more likely to submit an LWG issue to remove the requirement elsewhere than to submit an issue to add it to |
According to [sequence.reqmts],
a.assign_range(rg)
has the Mandates ofassignable_from<T&, ranges::range_reference_t<R>>
s modeled, however, this is missed in the MSVC-STL implementation.The following should be rejected:
https://godbolt.org/z/TrGsbcndj
Not sure if other containers have similar issues.
The text was updated successfully, but these errors were encountered: