You want to prevent unrecoverable destruction of resources when working with the move assignment operator in C++.
Which of these actions if taken will help you achieve this?
Options
- Properly handle self-assignment in the move assignment operator.
- Free resources such as memory and file handle.
- Provide move constructor along with the move assignment operator
- None of these