#5544 Fix of Array of table is not sorted if Create<type>Direct() is used (#5546)
authortira-misu <gunter.burchardt@boschrexroth.de>
Thu, 17 Oct 2019 21:22:21 +0000 (23:22 +0200)
committerWouter van Oortmerssen <aardappel@gmail.com>
Thu, 17 Oct 2019 21:22:21 +0000 (14:22 -0700)
commit5797540ed03a048f8db0ced443de0fef2843c2ed
tree04e434717af433e49ac7b8ce63778100129258c6
parent7f1af7cb02aad67c8a02ea541c78dee5df4a70e5
#5544 Fix of Array of table is not sorted if Create<type>Direct() is used (#5546)

* Fix C/C++ Create<Type>Direct with sorted vectors

If a struct has a key the vector has to be sorted. To sort the vector
you can't use "const".

* Changes due to code review

* Improve code readability
include/flatbuffers/reflection_generated.h
src/idl_gen_cpp.cpp
tests/monster_test_generated.h