Add missing members in move-operators

This commit is contained in:
Maxime Gimeno 2021-06-22 12:31:12 +02:00
parent fcf883a2f7
commit 53b1d3e0df
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,7 @@ public:
: at(std::move(other.at)), et(other.et)
{
other.et = nullptr;
this->count = std::move(other.count);
}
//move-assignment
@ -265,6 +266,7 @@ public:
this->et = other.et;
other.et = nullptr;
this->at = std::move(other.at);
this->count = std::move(other.count);
}
template<class A>