Skip to content

Unwrappable iter/sent pairs! - #3024

Merged
Stephan T. Lavavej (StephanTLavavej) merged 24 commits into
microsoft:mainfrom
strega-nil:unwrapping-with-sentinels
Aug 31, 2022
Merged

Unwrappable iter/sent pairs!#3024
Stephan T. Lavavej (StephanTLavavej) merged 24 commits into
microsoft:mainfrom
strega-nil:unwrapping-with-sentinels

Conversation

@strega-nil-ms

@strega-nil-ms nicole mazzuca (strega-nil-ms) commented Aug 10, 2022

Copy link
Copy Markdown
Contributor

The existing machinery leaves much to be desired, see #2992. This will hopefully fix those issues.

Requires tests

@strega-nil-ms

Copy link
Copy Markdown
Contributor Author

Casey Carter (@CaseyCarter) how do you feel about my new version?

@CaseyCarter

Copy link
Copy Markdown
Contributor

Casey Carter (@CaseyCarter) how do you feel about my new version?

I feel like the code formatting could be better 🥁 (looking now).

Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
@strega-nil-ms
nicole mazzuca (strega-nil-ms) marked this pull request as ready for review August 19, 2022 18:10
@strega-nil-ms

Copy link
Copy Markdown
Contributor Author

It's always fun finding weird bugs in the compiler
sticker: embarrassed but proud

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One test is failing for x86:

C:\a\1\s\tests\std\tests\P0896R4_ranges_alg_reverse_copy\test.cpp(136): fatal error C1060: compiler is out of heap space

Comment thread tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/env.lst
Comment thread tests/std/tests/GH_002989_nothrow_unwrappable/test.cpp Outdated
Comment thread stl/inc/xmemory Outdated
Comment thread tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/test.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't thank you enough for picking up this task I didn't have time for and knocking it out of the park. This is excellent.

Comment thread stl/inc/xutility
Comment thread stl/inc/xutility
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/test.cpp Outdated
Comment thread tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/test.cpp Outdated
Comment thread tests/std/include/range_algorithm_support.hpp Outdated
Comment thread stl/inc/xmemory Outdated
Comment thread stl/inc/xmemory
Comment thread tests/std/tests/P0896R4_ranges_test_machinery/test.compile.pass.cpp Outdated
Comment thread stl/inc/xutility Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

nicole mazzuca (@strega-nil-ms) Now that #2987 has landed, there's a merge conflict in <xutility> that needs to be resolved.

@strega-nil-ms

Copy link
Copy Markdown
Contributor Author

Stephan T. Lavavej (@StephanTLavavej) it has been moiged!

@strega-nil-ms nicole mazzuca (strega-nil-ms) removed their assignment Aug 29, 2022
Comment thread tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/test.compile.pass.cpp Outdated
Comment thread tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/test.compile.pass.cpp Outdated
Comment thread stl/inc/xmemory Outdated
Comment thread tests/std/include/range_algorithm_support.hpp Outdated
Comment thread tests/std/include/range_algorithm_support.hpp
Comment thread tests/std/include/range_algorithm_support.hpp Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 4495029 into microsoft:main Aug 31, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for unwrapping these iterators and sentinels so cats can play with the wrapping paper! 🐈 🎁 🐈‍⬛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants