Skip to content

US268 23.03.7.4 iter_swap should be callable with rvalue iterators P1878 #264

@wg21bot

Description

@wg21bot

The indirectly_swappable concept is over-constrained: it requires only that iter_swap is callable with lvalue iterators. It should be possible to call iter_swap with rvalues as well.

See discussion at ericniebler/stl2#578.

Proposed change:
Change the concept to require iter_swap to be callable with both lvalue and rvalue iterators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions