-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Modernize ranges::move #970
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
Conversation
This comment has been minimized.
This comment has been minimized.
|
So this is really strange. For whatever reason it tries to copy the Any lead on why? |
|
So it seems that the test machinery requires the elements to be copy constructible and copy assignable. Is that intentional? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
If you want to trigger a test run, you can push commits changing and undoing some comment; you might also be able to intentionally form an empty commit and push that (I know those can be created and pushed; not sure if Azure Pipelines will trigger based on them). |
Nope: it's a bug in Biggish patch incoming, which I assume will conflict with many of the "Modernize EDIT: I've managed to greatly limit the impact of the changes after reverting a change that made |
`test::proxy_reference<Cat, Elem>` and an arbitrary type `T` must model `common_reference_with` when `Elem&` and `T` do. Drive-by: * Change `proxy_reference<Cat, Elem>`'s conversion operator to `remove_cv_t<Elem>` into a conversion to `Elem&`, which is both simpler and more generic. * Generalize `proxy_reference<Cat, Elem>`'s assignment from `remove_cv_t<Elem> const&` into a perfect-forwarding assignment operator. * Extract `ranges::equal` out of `instantiator::call` into a separate function to keep `/analyze` from blowing the compiler's available heap space.
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
|
@CaseyCarter thanks a lot for the fix, this was way over my head. Am I correct that this also solves the problems with the I will remove the copy costructor/assignment from |
I don't know, but I hope so ;)
I did so in this PR already, IIRC. FWIW, there are still a couple (or I should say were a couple when the test runs weren't all failing spuriously) of test failures that repro on Azure but not on my local machine - possibly some issue that was fixed in 16.7p3. I'm not sure if we should try to localize and workaround or just update the test bots to the newer Preview since they're not exactly healthy right now. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Seeing all these cleanups truly moves me to tears. 😹 |

Note this is already written forward looking to what comes with the other PRs namely #959 and #930, so it will only compile after they have been merged. That said I plan to squeeze one of those into my lunch break and rebasing them should be faster than writing them some time in the future.