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
That looks like an oversight in the case of NestedStruct. Care to make a PR to fix it?
For tables I am not sure if we generate a copy constructor. That could of course be added, but may be more work. The default one likely wouldn't work since it may contain unique_ptr etc.
flatbuffers 1.12.0
Given the following schema:
I would expect generated native type
AnyStructUnion
to be copyable for bothSingleStruct
andNestedStruct
.However, the generated code for
AnyStructUnion
copy constructor claims otherwise:The same problem occurs if
NestedStruct
is defined as a table.The text was updated successfully, but these errors were encountered: