From 2d3cc0db7dda12e71b3ecb0e86ffcad56eb61042 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Tue, 4 Dec 2012 11:21:24 +0000 Subject: [PATCH] Update documentation and remove unused code. [SVN r81703] --- include/boost/smart_ptr/detail/array_traits.hpp | 8 -------- make_shared_array.html | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/boost/smart_ptr/detail/array_traits.hpp b/include/boost/smart_ptr/detail/array_traits.hpp index f3dc0be..8ef7874 100644 --- a/include/boost/smart_ptr/detail/array_traits.hpp +++ b/include/boost/smart_ptr/detail/array_traits.hpp @@ -26,14 +26,6 @@ namespace boost { typedef typename array_base::type type; }; template - struct array_size; - template - struct array_size { - enum { - size = N - }; - }; - template struct array_total { enum { size = 1 diff --git a/make_shared_array.html b/make_shared_array.html index 1e5ffbc..c1db41f 100644 --- a/make_shared_array.html +++ b/make_shared_array.html @@ -218,8 +218,8 @@ boost::shared_ptr<int[]> a4 = boost::make_shared<int[]>({1, 2, 3}); 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]>();