diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 4c40da033..8f6933ba1 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -919,6 +919,11 @@ class Verifier FLATBUFFERS_FINAL_CLASS { &end); } + // Verify a pointer (may be NULL) of a vector to struct. + template bool Verify(const Vector *vec) const { + return Verify(reinterpret_cast *>(vec)); + } + // Verify a pointer (may be NULL) to string. bool Verify(const String *str) const { const uint8_t *end;