diff --git a/Types.cpp b/Types.cpp index 72f13a01c..295434836 100644 --- a/Types.cpp +++ b/Types.cpp @@ -79,6 +79,12 @@ pair const* StorageOffsets::getOffset(size_t _index) const return nullptr; } +MemberList& MemberList::operator=(MemberList&& _other) +{ + m_memberTypes = std::move(_other.m_memberTypes); + m_storageOffsets = std::move(_other.m_storageOffsets); +} + std::pair const* MemberList::getMemberStorageOffset(string const& _name) const { if (!m_storageOffsets) diff --git a/Types.h b/Types.h index cc7a0e243..e7601fde8 100644 --- a/Types.h +++ b/Types.h @@ -73,6 +73,7 @@ public: MemberList() {} explicit MemberList(MemberMap const& _members): m_memberTypes(_members) {} + MemberList& operator=(MemberList&& _other); TypePointer getMemberType(std::string const& _name) const { for (auto const& it: m_memberTypes)