Fixes from review

This commit is contained in:
Simon Giraudot 2020-08-12 12:50:10 +02:00
parent d6d189b4a1
commit b51be554b9
1 changed files with 1 additions and 2 deletions

View File

@ -57,8 +57,6 @@ public:
Small_unordered_set() { } Small_unordered_set() { }
~Small_unordered_set() { }
Small_unordered_set (const Small_unordered_set& other) Small_unordered_set (const Small_unordered_set& other)
: m_size (other.m_size) : m_size (other.m_size)
{ {
@ -88,6 +86,7 @@ public:
Small_unordered_set& operator= (Small_unordered_set&& other) Small_unordered_set& operator= (Small_unordered_set&& other)
{ {
m_size = other.m_size;
if (other.m_set) if (other.m_set)
m_set = std::move(other.m_set); m_set = std::move(other.m_set);
else else