Add mention of unique_ptr and std::copy to contributing docs
This commit is contained in:
parent
ce605e3982
commit
3da1342185
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ which triggers locks
|
|||
|
||||
void my_function(std::string const& val); // if std::string or user type, pass by const&
|
||||
|
||||
#### Use unique_ptr instead of new/delete
|
||||
|
||||
#### Use std::copy instead of memcpy
|
||||
|
||||
#### When to use shared_ptr and unique_ptr
|
||||
|
||||
|
|
Loading…
Reference in a new issue