Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81703 - in trunk: boost/smart_ptr/detail libs/smart_ptr
From: glenfe_at_[hidden]
Date: 2012-12-04 06:21:25


Author: glenfe
Date: 2012-12-04 06:21:24 EST (Tue, 04 Dec 2012)
New Revision: 81703
URL: http://svn.boost.org/trac/boost/changeset/81703

Log:
Update documentation and remove unused code.
Text files modified:
   trunk/boost/smart_ptr/detail/array_traits.hpp | 8 --------
   trunk/libs/smart_ptr/make_shared_array.html | 4 ++--
   2 files changed, 2 insertions(+), 10 deletions(-)

Modified: trunk/boost/smart_ptr/detail/array_traits.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/array_traits.hpp (original)
+++ trunk/boost/smart_ptr/detail/array_traits.hpp 2012-12-04 06:21:24 EST (Tue, 04 Dec 2012)
@@ -26,14 +26,6 @@
             typedef typename array_base<T>::type type;
         };
         template<typename T>
- struct array_size;
- template<typename T, std::size_t N>
- struct array_size<T[N]> {
- enum {
- size = N
- };
- };
- template<typename T>
         struct array_total {
             enum {
                 size = 1

Modified: trunk/libs/smart_ptr/make_shared_array.html
==============================================================================
--- trunk/libs/smart_ptr/make_shared_array.html (original)
+++ trunk/libs/smart_ptr/make_shared_array.html 2012-12-04 06:21:24 EST (Tue, 04 Dec 2012)
@@ -218,8 +218,8 @@
 boost::shared_ptr&lt;int[3]&gt; a5 = boost::make_shared&lt;int[3]&gt;({1, 2, 3});
 boost::shared_ptr&lt;int[][3]&gt; a6 = boost::make_shared&lt;int[][3]&gt;(size, {1, 2, 3});
 boost::shared_ptr&lt;int[5][3]&gt; a7 = boost::make_shared&lt;int[5][3]&gt;({1, 2, 3});
-boost::shared_ptr&lt;point[]&gt; a8 = boost::make_shared&lt;point[]&gt;(4, {x, y});
-boost::shared_ptr&lt;point[4]&gt; a9 = boost::make_shared&lt;point[4]&gt;({x, y});
+boost::shared_ptr&lt;point[]&gt; a8 = boost::make_shared&lt;point[]&gt;(size, {x, y});
+boost::shared_ptr&lt;point[5]&gt; a9 = boost::make_shared&lt;point[5]&gt;({x, y});
 boost::shared_ptr&lt;int[]&gt; a10 = boost::make_shared_noinit&lt;int[]&gt;(size);
 boost::shared_ptr&lt;int[5]&gt; a11 = boost::make_shared_noinit&lt;int[5]&gt;();</pre>
     </blockquote>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk