Fixed helper function CreateVectorOfStructs calling wrong variant.

Change-Id: I4fd2a309276590227921ede467503f56b65ac689
Tested: on Windows and Linux
parent f0b3c757
...@@ -518,7 +518,7 @@ class FlatBufferBuilder { ...@@ -518,7 +518,7 @@ class FlatBufferBuilder {
template<typename T> Offset<Vector<const T *>> CreateVectorOfStructs( template<typename T> Offset<Vector<const T *>> CreateVectorOfStructs(
const std::vector<T> &v) { const std::vector<T> &v) {
return CreateVector(&v[0], v.size()); return CreateVectorOfStructs(&v[0], v.size());
} }
// Finish serializing a buffer by writing the root offset. // Finish serializing a buffer by writing the root offset.
...@@ -632,7 +632,7 @@ class Verifier { ...@@ -632,7 +632,7 @@ class Verifier {
} }
return true; return true;
} }
// Verify this whole buffer, starting with root type T. // Verify this whole buffer, starting with root type T.
template<typename T> bool VerifyBuffer() const { template<typename T> bool VerifyBuffer() const {
// Call T::Verify, which must be in the generated code for this type. // Call T::Verify, which must be in the generated code for this type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment