Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Mar 13, 2023

... so as not to require _Prevent_inheriting_unwrap; the intent of the unwrapping design is that _Prevent_inheriting_unwrap is optional.

I'm willing to be convinced that _Prevent_inheriting_unwrap should be made mandatory, in which case we should still accept this change and also make changes to _Allow_inheriting_unwrap_v to maintain consistency between Ranges and non-Ranges unwrapping machinery.

... so as not to require `_Prevent_inheriting_unwrap`. The intent of the unwrapping design is that `_Prevent_inheriting_unwrap` is optional.
@CaseyCarter CaseyCarter added the bug Something isn't working label Mar 13, 2023
@CaseyCarter CaseyCarter requested a review from a team as a code owner March 13, 2023 20:37
@CaseyCarter CaseyCarter changed the title Weakly_unwrappable should use _Allow_inheriting_unwrap_v Weakly_unwrappable should use _Allow_inheriting_unwrap_v Mar 13, 2023
@strega-nil-ms
Copy link
Contributor

I'm happy either way, although slight preference for _Prevent_inheriting_unwrap being mandatory.

@strega-nil-ms strega-nil-ms added the decision needed We need to choose something before working on this label Mar 13, 2023
@StephanTLavavej
Copy link
Member

I prefer the typedef to be optional, as this asks user-defined iterators to do less work. Inheriting from an iterator is squirrely and most code doesn't need to worry about that scenario.

Copy link
Contributor

@barcharcraz barcharcraz left a comment

Choose a reason for hiding this comment

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

I kinda like it being optional, as well.

@StephanTLavavej StephanTLavavej removed the decision needed We need to choose something before working on this label Mar 15, 2023
@StephanTLavavej StephanTLavavej self-assigned this Mar 16, 2023
@StephanTLavavej
Copy link
Member

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

@StephanTLavavej StephanTLavavej changed the title Weakly_unwrappable should use _Allow_inheriting_unwrap_v _Weakly_unwrappable should use _Allow_inheriting_unwrap_v Mar 16, 2023
@StephanTLavavej StephanTLavavej merged commit 5116678 into microsoft:main Mar 17, 2023
@StephanTLavavej
Copy link
Member

Thanks for fixing this bug! 🐞 🐈‍⬛ 😻

@CaseyCarter CaseyCarter deleted the unwrap branch March 17, 2023 05:29
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