Skip to content

Commit

Permalink
Add mention of unique_ptr and std::copy to contributing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Dec 5, 2014
1 parent ce605e3 commit 3da1342
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/contributing.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3da1342

Please sign in to comment.