Fix reverse iterators for Vector and Array (#6626)
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>
Mon, 10 May 2021 16:07:56 +0000 (23:07 +0700)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 16:07:56 +0000 (09:07 -0700)
commitc8c16de16793a8dc037965d2177c776212b11844
treebbc4b75d8d2288919236df2e6d2fb362c7964c29
parent4525cd9c5609f41e6f82f219a8dfef89d73e207e
Fix reverse iterators for Vector and Array (#6626)

This commit fixes two serious issues connected with reverse iterators:
1. Vector's rbegin/rend was incompatible with std::reverse_iterator::base();
2. Array's rend() was incorrect, it based on end() instead of begin().
include/flatbuffers/flatbuffers.h
tests/test.cpp