Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[input.iterators] [C++11] InputIterator convertibility requiremen conflicts with non-copyable types #8051

Closed as not planned
@CN-YuXin

Description

@CN-YuXin

The requirement for the type of *a in [input.iterators] Table 77:

reference, convertible to T

Whereas [forward.iterators] requires  reference  to be a reference  to T  or const T.

This conversion necessitates a copy constructor. However, containers like vector have permitted value_type without copy constructors since C++11, contradicting the requirement in [input.iterators].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions