Currently, Matrix a = b; causes segmentation fault due to double free.
This commit disables copy assignment, and enables move semantics.
Discussion is freely welcomed, and any suggestion to modify this PR will be respected too. As far as I know, this commit is compatible with the existing use cases of Matrix class in Project2.
Currently,
Matrix a = b;
causes segmentation fault due to double free.This commit disables copy assignment, and enables move semantics.
Discussion is freely welcomed, and any suggestion to modify this PR will be respected too. As far as I know, this commit is compatible with the existing use cases of Matrix class in Project2.