diff --git a/docs/contributing.markdown b/docs/contributing.markdown index 356e23f8e..74c6c2ebf 100644 --- a/docs/contributing.markdown +++ b/docs/contributing.markdown @@ -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