Files
flatbuffers-bigfoot/docs/source
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
..
2021-07-08 13:29:00 -07:00
2021-09-02 11:38:45 -04:00
2021-06-14 10:15:56 -07:00
2016-01-19 14:31:17 -08:00
2022-06-14 15:10:57 -07:00
2018-03-23 09:01:39 -07:00
2021-09-02 11:38:45 -04:00
2021-09-02 11:38:45 -04:00
2020-01-30 10:18:28 -08:00
2021-06-30 14:55:56 -04:00
2021-04-30 10:38:16 -07:00
2016-01-19 14:31:17 -08:00
2022-05-12 10:02:14 -07:00
2016-01-19 14:31:17 -08:00
2021-06-14 10:15:56 -07:00