Skip to content

Issues with the arithmetic in iterator and reverse iterator #593

Description

@HenryRLee

Hi, I just found that the iterator class hasn't override the n + iterator operator, which is a requirement in the random access iterator type.

More specifically, this operator is missing:

operator+(difference_type, const iter_impl&);

The failing code is:

json j_object
auto it = j_object.cbegin();
1 + it; // error

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions