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

Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

I've confirmed that @StephanTLavavej's analysis for the related test failure was correct.

Possible STL bug, _Vb_reference derives from _Vb_iter_base and is adopted by the container, but _Orphan_range_unlocked assumes every child is a const_iterator.

This PR exposes _Mybase for the convenience of casting, and removes some unnecessary _Difference_type member type alias as driven-by changes. (It seems better to me to use difference_type whenever it's available.)

Unblocks one libcxx test:

  • std/containers/sequences/vector.bool/emplace_back.pass.cpp

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner December 17, 2023 17:39
@StephanTLavavej StephanTLavavej self-assigned this Dec 18, 2023
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Dec 18, 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 merged commit 1444b44 into microsoft:main Jan 11, 2024
@StephanTLavavej
Copy link
Member

Thanks for confirming my initial investigation and figuring out how to fix this libcxx failure! 📉 😻 🛠️

@frederick-vs-ja frederick-vs-ja deleted the cast-to-vb-iter-base branch January 11, 2024 23:19
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.

3 participants