tonyyxliu / CUHKSZ-CSC4005

Project Materials for CUHK(SZ) Course CSC4005: Parallel Programming
MIT License
79 stars 31 forks source link

Use move semantics for Matrix #48

Closed Congyuwang closed 1 year ago

Congyuwang commented 1 year ago

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.