-
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
Implement LWG-3743 ranges::to
's reserve
may be ill-formed
#3269
Conversation
// LWG example
auto r = std::ranges::subrange(std::views::iota(0ULL) | std::views::take(5), 5);
auto v = r | std::ranges::to<std::vector<std::size_t>>(0); The LWG example gives me a mixed signed/unsigned warning and I changed 0 to 0ULL without having a full understanding of where it is used and I only tested X86-64 |
Co-authored-by: Casey Carter <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much!
@CaseyCarter changes have been pushed to add a TRANSITION comment and resolve your comments if you would like to re-review. |
@strega-nil-ms @CaseyCarter I pushed a change to fix damaged bug number citations. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for implementing this LWG issue resolution - well-formed code is so much nicer than ill-formed! 😹 🛠️ 🎉 |
Fixes #3224