From cd6a649a165b35b528234b2ec96c6b06dcda8c43 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 12 Oct 2011 15:56:27 -0700 Subject: [PATCH] add note about boost::make_shared to coding conventions --- docs/contributing.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/contributing.markdown b/docs/contributing.markdown index 5e52a282e..3040ebada 100644 --- a/docs/contributing.markdown +++ b/docs/contributing.markdown @@ -67,6 +67,9 @@ If you see bits of code around that do not follow these please don't hesitate to * Indentation is four spaces, unless 2 works better for a given case +* Shared pointers should be created with [boost::make_shared](http://www.boost.org/doc/libs/1_47_0/libs/smart_ptr/ +make_shared.html) where possible + * Function definitions should not be separated from their arguments: void foo(int a) { ... } // please