FlatBuffers Version 24.12.23 (#8459)

* FlatBuffers Release 24.12.23

* Fixed missing generated file version checks

* Run generate_code and fix cpp17 tests
This commit is contained in:
Derek Bailey
2024-12-23 12:55:07 -08:00
committed by GitHub
parent 32e63af684
commit a2cd1ea3b6
189 changed files with 371 additions and 293 deletions

View File

@@ -2653,7 +2653,7 @@ class CppGenerator : public BaseGenerator {
code_ += "if constexpr (Index == {{FIELD_INDEX}}) \\";
code_ += "return {{FIELD_NAME}}();";
}
code_ += " else static_assert(Index != Index, \"Invalid Field Index\");";
code_ += " else static_assert(Index != -1, \"Invalid Field Index\");";
code_ += " }";
}