mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 12:28:18 +00:00
Fixed helper function CreateVectorOfStructs calling wrong variant.
Change-Id: I4fd2a309276590227921ede467503f56b65ac689 Tested: on Windows and Linux
This commit is contained in:
@@ -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 {
|
|||||||
}
|
}
|
||||||
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user