Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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