From b863ac0171500634406b10577c59853bce615e7c Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Wed, 2 Jul 2014 11:19:02 -0700 Subject: [PATCH] Fixed helper function CreateVectorOfStructs calling wrong variant. Change-Id: I4fd2a309276590227921ede467503f56b65ac689 Tested: on Windows and Linux --- include/flatbuffers/flatbuffers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 4d4397a..ff33255 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -518,7 +518,7 @@ class FlatBufferBuilder { template Offset> CreateVectorOfStructs( const std::vector &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 bool VerifyBuffer() const { // Call T::Verify, which must be in the generated code for this type. -- 2.7.4