Skip to content

<deque>: erase with two iterators invokes move / move_backward when the range is empty #1118

@Bekenn

Description

@Bekenn

STL/stl/inc/deque

Line 1295 in 4e97255

if (_Off < static_cast<size_type>(end() - _Last)) { // closer to front

This runs counter to the preconditions on std::move, which requires that the destination iterator is outside the source range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions