aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-17 02:00:09 +0800
committerchriseth <c@ethdev.com>2015-03-17 02:00:45 +0800
commitc284408e7a31f2e24611cf6360b492e35ab1c0b5 (patch)
tree5871e7976992083268504d539d2702b40cbb39b5 /Types.cpp
parent9b2a255c1b0ac1e247a59e4cd8cb3c94b53aca7c (diff)
downloaddexon-solidity-c284408e7a31f2e24611cf6360b492e35ab1c0b5.tar.gz
dexon-solidity-c284408e7a31f2e24611cf6360b492e35ab1c0b5.tar.zst
dexon-solidity-c284408e7a31f2e24611cf6360b492e35ab1c0b5.zip
Add move assignment operator manually.
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index 72f13a01..29543483 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -79,6 +79,12 @@ pair<u256, unsigned> 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<u256, unsigned> const* MemberList::getMemberStorageOffset(string const& _name) const
{
if (!m_storageOffsets)