We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does the move assignment do not release the memory poitned by ptr_ ? https://github.com/PacktPublishing/Cpp-High-Performance-Second-Edition/blob/master/Chapter02/move_semantics.cpp#L50C3-L57C4 The object has been constructed, so ptr_ points to some memory. It seems that there should be delete[] ptr_ just like in the copy assignment?
delete[] ptr_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why does the move assignment do not release the memory poitned by ptr_ ?
https://github.com/PacktPublishing/Cpp-High-Performance-Second-Edition/blob/master/Chapter02/move_semantics.cpp#L50C3-L57C4
The object has been constructed, so ptr_ points to some memory. It seems that there should be
delete[] ptr_
just like in the copy assignment?The text was updated successfully, but these errors were encountered: