Skip to content

US 46-107 25.5.7.1 [counted.iterator] Too many iterator increments #523

@wg21bot

Description

@wg21bot

r | take(n) currently advances the underlying range’s iterator n times past r.begin(), when it really only needs to advance n-1 times. This can lead to surprising and dysfunctional behavior in some contexts that needs to be addressed.

Proposed change:

Adopt P2406 or an alternative solution in this space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LEWGLibrary Evolutionhas-paperrangesstd::rangesrejectedNo consensus for a change.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions