Applying Jonathan's suggestion for #1792

pull/1801/head
Herb Sutter 5 years ago
parent b96d861fd1
commit d93489f3d4

@ -4745,7 +4745,7 @@ into more expensive copies, or making a class move-only.
// ...
}
Given that "special attention" was needed for the destructor (here, to deallocate), the likelihood that copy and move assignment (which are generated by the compiler and both will implicitly destroy an object) are correct is low (here, we would get double deletion).
Given that "special attention" was needed for the destructor (here, to deallocate), the likelihood that the implicitly-defined copy and move assignment operators will be correct is low (here, we would get double deletion).
##### Note

Loading…
Cancel
Save