Make MemberList nothrow move constructible.

This commit is contained in:
chriseth
2018-08-07 14:20:18 +02:00
parent d0bfe4b225
commit 133fd3d302
2 changed files with 2 additions and 11 deletions
+2 -2
View File
@@ -95,9 +95,7 @@ public:
using MemberMap = std::vector<Member>;
MemberList() {}
explicit MemberList(MemberMap const& _members): m_memberTypes(_members) {}
MemberList& operator=(MemberList&& _other);
void combine(MemberList const& _other);
TypePointer memberType(std::string const& _name) const
{
@@ -132,6 +130,8 @@ private:
mutable std::unique_ptr<StorageOffsets> m_storageOffsets;
};
static_assert(std::is_nothrow_move_constructible<MemberList>::value, "MemberList should be noexcept move constructible");
/**
* Abstract base class that forms the root of the type hierarchy.
*/