Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81419 - trunk/libs/smart_ptr
From: glenfe_at_[hidden]
Date: 2012-11-19 03:08:28

Author: glenfe
Date: 2012-11-19 03:08:27 EST (Mon, 19 Nov 2012)
New Revision: 81419

Update smart_ptr.htm with link to make_shared_array.htm which lists the many overloads of make_shared and allocate_shared for arrays.
Text files modified:
   trunk/libs/smart_ptr/smart_ptr.htm | 11 +++++++++++
   1 files changed, 11 insertions(+), 0 deletions(-)

Modified: trunk/libs/smart_ptr/smart_ptr.htm
--- trunk/libs/smart_ptr/smart_ptr.htm (original)
+++ trunk/libs/smart_ptr/smart_ptr.htm 2012-11-19 03:08:27 EST (Mon, 19 Nov 2012)
@@ -70,6 +70,11 @@
                                         <td>Efficient creation of <code>shared_ptr</code> objects.</td>
+ <tr>
+ <td>make_shared and allocate_shared for arrays</td>
+ <td><boost/make_shared.hpp></td>
+ <td>Efficient creation of <code>shared_ptr</code> arrays.</td>
+ </tr>
                 <p>A test program, smart_ptr_test.cpp, is
@@ -126,6 +131,12 @@
                 <p>Functions which destroy objects of the pointed to type are prohibited from
                         throwing exceptions by the common requirements.</p>
                 <h2><a name="History">History</a> and Acknowledgements</h2>
+ <p>November 2012. Glen Fernandes provided implementations of <b>make_shared</b>
+ and <b>allocate_shared</b> for arrays. They achieve a single allocation for an
+ array that can be initialized with constructor arguments or initializer lists
+ as well as overloads for default initialization and no value initialization.
+ See the <a href="make_shared_array.html">make_shared and allocate_shared for
+ arrays</a> page for more information.</p>
                 <p>January 2002. Peter Dimov reworked all four classes, adding features, fixing
                         bugs, and splitting them into four separate headers, and added <b>weak_ptr</b>.
                         See the compatibility page for a summary of the

Boost-Commit list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at