mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Add the --no-minmax-values flag to prevent flatc from generating C++ enums with MIN and MAX enumerated values that otherwise would be set to the inclusive lower and upper bound respectively of the enum. This command-line flag is needed to avoid collisions when an enum that is being ported to FlatBuffers already has a MIN or MAX enumerated value. It is also needed to work around a long-standing problem with magic_enum that causes magic_enum to not see enumerated values that are not unique. For example, if FlatBuffers sets MIN = FOO and MAX = BAR, MIN and FOO share the same underlying value so they are not unique. The same is true of MAX and BAR. This prevents magic_enum from converting FOO and BAR to and from strings as well as causing magic_enum to return a count of enumerated values that is two fewer than it should be. Co-authored-by: Paul Serice <paul@serice.net> |
||
|---|---|---|
| .. | ||
| gRPC | ||
| Benchmarks.md | ||
| Building.md | ||
| Compiler.md | ||
| CONTRIBUTING.md | ||
| CppUsage.md | ||
| CsharpUsage.md | ||
| CUsage.md | ||
| DartUsage.md | ||
| doxyfile | ||
| doxygen_layout.xml | ||
| FlatBuffers.md | ||
| FlexBuffers.md | ||
| GoApi.md | ||
| GoApi_generated.txt | ||
| GoUsage.md | ||
| Grammar.md | ||
| groups | ||
| IntermediateRepresentation.md | ||
| Internals.md | ||
| JavaScriptUsage.md | ||
| JavaUsage.md | ||
| KotlinUsage.md | ||
| LobsterUsage.md | ||
| LuaUsage.md | ||
| PHPUsage.md | ||
| PythonUsage.md | ||
| README_TO_GENERATE_DOCS.md | ||
| RustUsage.md | ||
| Schemas.md | ||
| style.css | ||
| Support.md | ||
| SwiftUsage.md | ||
| Tutorial.md | ||
| TypeScriptUsage.md | ||
| WhitePaper.md | ||