mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-13 00:04:29 +00:00
update C++ generator to emit scoped enums in vector of unions (#7075)
This commit is contained in:
@@ -468,6 +468,10 @@ inline bool IsUnion(const Type &type) {
|
||||
return type.enum_def != nullptr && type.enum_def->is_union;
|
||||
}
|
||||
|
||||
inline bool IsUnionType(const Type &type) {
|
||||
return IsUnion(type) && IsInteger(type.base_type);
|
||||
}
|
||||
|
||||
inline bool IsVector(const Type &type) {
|
||||
return type.base_type == BASE_TYPE_VECTOR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user