mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make MemberList nothrow move constructible.
This commit is contained in:
@@ -169,15 +169,6 @@ pair<u256, unsigned> const* StorageOffsets::offset(size_t _index) const
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
MemberList& MemberList::operator=(MemberList&& _other)
|
||||
{
|
||||
solAssert(&_other != this, "");
|
||||
|
||||
m_memberTypes = move(_other.m_memberTypes);
|
||||
m_storageOffsets = move(_other.m_storageOffsets);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void MemberList::combine(MemberList const & _other)
|
||||
{
|
||||
m_memberTypes += _other.m_memberTypes;
|
||||
|
||||
Reference in New Issue
Block a user