mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Add clarification at C.21 (#1792)
This commit is contained in:
parent
da97de7160
commit
b96d861fd1
|
@ -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 (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 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).
|
||||
|
||||
##### Note
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user