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
[util.smartptr.shared.assign] assign from auto_ptr&& is in the wrong paragraph #211
Comments
…paragraph Reported by Bo Persson. Fixes cplusplus#211
Good point, those effects won't even compile. Additionally, paragraphs 6 & 7 are identical to paragraphs 4 & 5 (except for a missing period) so the assignment from |
Combine descriptions of all assignments from rvalues, as paragraphs 4-5 are identical to paragraphs 6-7. Reported by Bo Persson. Fixes cplusplus#211
Combine descriptions of all assignments from rvalues, as paragraphs 4-5 are identical to paragraphs 6-7 except for a missing period. Reported by Bo Persson. Fixes cplusplus#211
Yes, I agree that this matches the clear and unambiguous intent, and it seems clear to me that the note in paragraph 3 should not apply to the I'm on the fence about merging p4+5 with p6+7 -- while they have the same effects, they notionally mean different things, since p6 and p7 transform a uniquely-owned pointer into a shared-ownership one, whereas p4 and p5 merely transfer shared ownership. I'm happy to leave this choice to your discretion. =) |
|
shared_ptr assignment has two groups of assignments, assignment from lvalue (paragraphs 1-3) and assignment from rvalue (paragraphs 4-5).
operator=(auto_ptr&&) is shown in the first group, but the Effects clause is not valid for that operator. It belongs in the second group of operators.
The text was updated successfully, but these errors were encountered: