<deque>: Fix single-element insertion of deque#4022
<deque>: Fix single-element insertion of deque#4022StephanTLavavej merged 12 commits intomicrosoft:mainfrom
<deque>: Fix single-element insertion of deque#4022Conversation
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev10_860421_deque_push_back_pop_front/test.cpp
Outdated
Show resolved
Hide resolved
|
I thought carefully about these cases, and I think we have sufficient test coverage, so we can merge this without a second maintainer approval. I believe that resolving the merge conflict in this batch should be simple but I'll see. |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
I've pushed a merge with |
|
Thanks for fixing this bug in the STL's favorite and best container! 😹 🐞 ✅ |
As said in #1023 (comment), it's non-conforming to use
rotatewhich requires swappability.It seems to me that we should sometime use copy construction/assignment instead or moving, as done inNo, the requirements forvector.dequeare more relaxed.Fixes #1023. Note that there'll be merge conflict with #4016.