Fixed helper function CreateVectorOfStructs calling wrong variant.

Change-Id: I4fd2a309276590227921ede467503f56b65ac689
Tested: on Windows and Linux
This commit is contained in:
Wouter van Oortmerssen 2014-07-02 11:19:02 -07:00
parent f0b3c75779
commit b863ac0171
1 changed files with 2 additions and 2 deletions

View File

@ -518,7 +518,7 @@ class FlatBufferBuilder {
template<typename T> Offset<Vector<const T *>> CreateVectorOfStructs(
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.
@ -632,7 +632,7 @@ class Verifier {
}
return true;
}
// Verify this whole buffer, starting with root type T.
template<typename T> bool VerifyBuffer() const {
// Call T::Verify, which must be in the generated code for this type.