skift-org/skift

Infinite recursion in move-assignment operator of `Mem`

Eisenwave opened this issue · 0 comments

Unless I'm seeing things incorrectly, the following snippet should be infinite recursion:

Mem &operator=(Mem &&other) {
*this = std::move(other);
return *this;
}

Furthermore, the move constructor and move assignment operator should be noexcept.