mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-02 02:07:25 +00:00
Fix generation of C++ code with Optional<Enum> (#6155)
This commit is contained in:
parent
0bdf2fa156
commit
bbcc85fd4c
4 changed files with 11 additions and 10 deletions
|
|
@ -77,7 +77,7 @@ struct ScalarStuffT : public flatbuffers::NativeTable {
|
|||
flatbuffers::Optional<double> maybe_f64 = flatbuffers::nullopt;
|
||||
double default_f64 = 42.0;
|
||||
bool just_bool = false;
|
||||
flatbuffers::Optional<bool> maybe_bool = true;
|
||||
flatbuffers::Optional<bool> maybe_bool = flatbuffers::nullopt;
|
||||
bool default_bool = true;
|
||||
optional_scalars::OptionalByte just_enum = optional_scalars::OptionalByte::None;
|
||||
optional_scalars::OptionalByte default_enum = optional_scalars::OptionalByte::One;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue