mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Allow tables that are entirely composed of native inlines to be copied. (#4958)
This commit is contained in:
parent
4b864fd172
commit
ebb410062b
1 changed files with 2 additions and 1 deletions
|
|
@ -1299,7 +1299,8 @@ class CppGenerator : public BaseGenerator {
|
|||
for (auto fit = ev.union_type.struct_def->fields.vec.begin();
|
||||
fit != ev.union_type.struct_def->fields.vec.end(); ++fit) {
|
||||
const auto &field = **fit;
|
||||
if (!field.deprecated && field.value.type.struct_def) {
|
||||
if (!field.deprecated && field.value.type.struct_def &&
|
||||
!field.native_inline) {
|
||||
copyable = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue