mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
c4088e053b
@ -4290,8 +4290,8 @@ Make sure that every member of the derived class is initialized.
|
||||
|
||||
## <a name="SS-copy"></a> C.copy: Copy and move
|
||||
|
||||
Value type should generally be copyable, but interfaces in a class hierarchy should not.
|
||||
Resource handles, may or may not be copyable.
|
||||
Value types should generally be copyable, but interfaces in a class hierarchy should not.
|
||||
Resource handles may or may not be copyable.
|
||||
Types can be defined to move for logical as well as performance reasons.
|
||||
|
||||
### <a name="Rc-copy-assignment"></a> C.60: Make copy assignment non-`virtual`, take the parameter by `const&`, and return by non-`const&`
|
||||
|
Loading…
x
Reference in New Issue
Block a user