Skip to content

Add test coverage for deque::erase(iter, iter) avoiding self-move-assigns #1176

@StephanTLavavej

Description

@StephanTLavavej

#1118 was fixed by #1148, so deque::erase(iter, iter) avoids performing self-move-assigns when called with empty ranges. We should have test coverage for this scenario. Our test for vector can be extended:

// Also test DevCom-776568 "vector::erase(a, a) self-move-assigns the whole vector"
struct CheckSelfMoveAssign {

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!testRelated to test code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions