|
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<int[3]> a5 = boost::make_shared<int[3]>({1, 2, 3});
boost::shared_ptr<int[][3]> a6 = boost::make_shared<int[][3]>(size, {1, 2, 3});
boost::shared_ptr<int[5][3]> a7 = boost::make_shared<int[5][3]>({1, 2, 3});
-boost::shared_ptr<point[]> a8 = boost::make_shared<point[]>(4, {x, y});
-boost::shared_ptr<point[4]> a9 = boost::make_shared<point[4]>({x, y});
+boost::shared_ptr<point[]> a8 = boost::make_shared<point[]>(size, {x, y});
+boost::shared_ptr<point[5]> a9 = boost::make_shared<point[5]>({x, y});
boost::shared_ptr<int[]> a10 = boost::make_shared_noinit<int[]>(size);
boost::shared_ptr<int[5]> a11 = boost::make_shared_noinit<int[5]>();</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