You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For vectors of enum values, the default value seems to be 0 (as in nullptr).
If the vector is of an enum type that does not have 0 in it, flatc refuses to compile the file:
test.fbs:
enum Color : byte { Red = 1, Green, Blue }
table Colors {
color_values:[Color];
}
$ flatc -c test.fbs
>>> error: path/to/test.fbs:3: 23: error: default value of 0 for field color_values is not part of enum Color
For vectors of enum values, the default value seems to be 0 (as in
nullptr
).If the vector is of an enum type that does not have 0 in it, flatc refuses to compile the file:
test.fbs:
Looks like idl_parser.cpp:682 triggers here, even though it shouldn't.
Without knowing too much about the code, would adding
IsScalar(type.base_type)
to the guards on that block fix this?The text was updated successfully, but these errors were encountered: