From 3da134218545bdd784a2c7d735f711c6feec66f7 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 5 Dec 2014 12:28:51 -0500 Subject: [PATCH] Add mention of unique_ptr and std::copy to contributing docs --- docs/contributing.markdown | 3 +++ 1 file changed, 3 insertions(+) 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