[C++] #6501 - Problem when mapping a native type multiple times (#6514)
authorMichael <7428276+Urmeli0815@users.noreply.github.com>
Thu, 18 Mar 2021 18:01:50 +0000 (19:01 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Mar 2021 18:01:50 +0000 (11:01 -0700)
commit78f0c0d1d96a220163a03174d3240864a6a139da
treeb77938a288487e20af8e0279e7cdf11d33313d00
parentc992eafb5b50f1aab9d7863864a0a49fe278836e
[C++] #6501 - Problem when mapping a native type multiple times (#6514)

* [C++] #6501 - Problem when mapping a native type multiple times
- idl.h:
added "native_type_pack_name"
- flatbuffers.h:
added CreateVectorOfNativeStructs variants which receive a pointer to the serialization function
- idl_gen_cpp.cpp:
adapted code generation in case "native_type_pack_name" attribute is present
- extended tests & docs; improved surrounding native_type docs a little

* integrated review feedback
docs/source/CppUsage.md
include/flatbuffers/flatbuffers.h
include/flatbuffers/idl.h
src/idl_gen_cpp.cpp
tests/native_type_test.fbs
tests/native_type_test_generated.h
tests/native_type_test_impl.cpp
tests/native_type_test_impl.h
tests/test.cpp