mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-05 03:37:29 +00:00
Added missing generated code from previous commits.
Change-Id: Id7053e4cb5a085a4b047c86ff1f2269329ff7f54
This commit is contained in:
parent
377a8ba6b2
commit
cf825b8819
2 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ struct EquipmentUnion {
|
|||
Reset();
|
||||
type = EquipmentTraits<typename T::TableType>::enum_value;
|
||||
if (type != Equipment_NONE) {
|
||||
table = new T(std::move(value));
|
||||
table = new T(std::forward<T>(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ struct AnyUnion {
|
|||
Reset();
|
||||
type = AnyTraits<typename T::TableType>::enum_value;
|
||||
if (type != Any_NONE) {
|
||||
table = new T(std::move(value));
|
||||
table = new T(std::forward<T>(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue