-
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
Don't assume that _Hash_vec
's size and capacity are always equal
#2774
Don't assume that _Hash_vec
's size and capacity are always equal
#2774
Conversation
The prior implementation that used `vector` directly had bugs that sometimes result in differing size and capacity. Since old and new code have may link, we need to tolerate this condition. Fixes DevCom-1190124/VSO-1220461
My current thinking is that we can't test this non-intrusively, and any intrusive test would require more changes to the code than does the fix, so it's probably not worthwhile. I'm happy to hear any suggestions. |
_Hash_vec
's size and capacity are always equal
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for finding out how to fix this bincompat break! 🏚️ 🛠️ 🏡 |
Can this be fixed for 2019 16.11 STL? |
The prior implementation that used
vector
directly had bugs that sometimes result in differing size and capacity. Since old and new code may link, we need to tolerate this condition.Fixes DevCom-1190124/VSO-1220461/AB#1220461