Commit ebb41006 authored by Taj Morton's avatar Taj Morton Committed by Wouter van Oortmerssen

Allow tables that are entirely composed of native inlines to be copied. (#4958)

parent 4b864fd1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment