Skip to content

Make buffer iterators conform to the random-access iterator contract #8

Description

@vshalygin

This issue was identified during a Codex code review.

The iterators of buffer, buffer_view, and cbuffer_view declare std::random_access_iterator_tag, but do not implement the complete random-access iterator interface.

Missing or inconsistent operations include compound arithmetic, indexed access, relational comparisons, default construction, and correct dereferencing of a const mutable iterator.

Implement the complete iterator contract or advertise a weaker iterator category. Add compile-time checks and tests using standard algorithms.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions