mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
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:
@@ -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_ += " }";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user