Library 5

This commit is contained in:
Alessandro Ferro
2021-06-09 08:13:58 +02:00
parent d15173a276
commit 07cdae9a03
3 changed files with 158 additions and 114 deletions

View File

@@ -45,7 +45,7 @@ MatrixCSR<Data>::MatrixCSR(MatrixCSR&& toMove) noexcept{
std::swap(head, toMove.head);
std::swap(R, toMove.R);
toMove.R.Resize(1);
toMove.R.Resize(1); // the moved matrix must be empty
toMove.R[0] = &toMove.head;
Node** oldHead = R[0];