Skip to content
Snippets Groups Projects
Commit d695a117 authored by Philip Trettner's avatar Philip Trettner
Browse files

removed test for self-move

parent dea6da5e
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,10 @@ struct unique_array
}
unique_array& operator=(unique_array&& rhs) noexcept
{
if (this != &rhs)
{
// self-move results in moved-from state
delete[] ptr;
ptr = rhs.ptr;
rhs.ptr = nullptr;
}
return *this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment