From f73d205bc7536991e620d3027a711e713a789967 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Thu, 5 Mar 2020 17:20:51 -0800 Subject: [PATCH] Removed assert that wasn't backwards compatible. Change-Id: I8e74d6fddf91fe955fffc572af9d671160325731 --- include/flatbuffers/idl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h index e04b55e10..12b2b142f 100644 --- a/include/flatbuffers/idl.h +++ b/include/flatbuffers/idl.h @@ -91,7 +91,7 @@ switch (type) { } */ -// If not all FLATBUFFERS_GEN_() arguments are necessary for implementation +// If not all FLATBUFFERS_GEN_() arguments are necessary for implementation // of FLATBUFFERS_TD, you can use a variadic macro (with __VA_ARGS__ if needed). // In the above example, only CTYPE is used to generate the code, it can be rewritten: @@ -411,7 +411,6 @@ struct EnumDef : public Definition { size_t size() const { return vals.vec.size(); } const std::vector &Vals() const { - FLATBUFFERS_ASSERT(false == vals.vec.empty()); return vals.vec; }