google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
22.52k stars 3.19k forks source link

Add missing opertors to VectorIterator #8309

Closed Icantjuddle closed 1 month ago

Icantjuddle commented 1 month ago

VectorIterator is supposed to be a random access iterator (per https://github.com/google/flatbuffers/issues/4095) but it was missing some operators per: https://en.cppreference.com/w/cpp/named_req/RandomAccessIterator which I don't believe are defaulted. This creates some compatibility issues.

google-cla[bot] commented 1 month ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.