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.
This issue was identified during a Codex code review.
The iterators of
buffer,buffer_view, andcbuffer_viewdeclarestd::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.