flatbuffers/docs
jalitriver 920f3827a0
[C++] Add Command-Line Flag to Suppress MIN and MAX Enums (#7705)
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>
2023-01-07 10:33:11 -08:00
..
images Updated documentation to use new css style. 2015-07-22 13:10:37 -07:00
source [C++] Add Command-Line Flag to Suppress MIN and MAX Enums (#7705) 2023-01-07 10:33:11 -08:00
footer.html Text files should not have executable bit set (#4480) 2017-11-06 10:20:22 -08:00
header.html Added a link to other FPL libraries to the main page. 2015-08-05 17:32:14 -07:00