martinmoene / ring-span-lite

ring-span lite - A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
148 stars 12 forks source link

Iterator tag is "random access" but doesn't satisfy random access concept #30

Closed Crzyrndm closed 8 months ago

Crzyrndm commented 8 months ago

Godbolt. The operator[] definition is missing

Concept definition: https://en.cppreference.com/w/cpp/iterator/random_access_iterator

iterator marked with RA Iterator category tag

Found this while porting some code from SFINAE to concepts. Minor hiccup