diff --git a/make_shared_array.html b/make_shared_array.html
index 9c46926..f1e08bc 100644
--- a/make_shared_array.html
+++ b/make_shared_array.html
@@ -41,7 +41,7 @@
shared_ptr<T[N]> make_shared(Args&&... args);
template<typename T, typename A, typename... Args>
- shared_ptr<T> allocate_shared(const A& allocator, size_t size, Args&&... args);
+ shared_ptr<T[]> allocate_shared(const A& allocator, size_t size, Args&&... args);
template<typename T, typename A, typename... Args>
shared_ptr<T[N]> allocate_shared(const A& allocator, Args&&... args);
@@ -74,7 +74,7 @@
#endif
template<typename T>
- shared_ptr<T> make_shared_noinit(size_t size);
+ shared_ptr<T[]> make_shared_noinit(size_t size);
template<typename T>
shared_ptr<T[N]> make_shared_noinit();
@@ -123,15 +123,18 @@ template<typename T, typename A, typename... Args>
constructor of T
for each array element.
boost::shared_ptr<int[]> a1 = boost::make_shared<int[]>(size); -boost::shared_ptr<point[5]> a2 = boost::make_shared<point[5]>(x, y); -boost::shared_ptr<int[5]> a3 = boost::make_shared<int[5]>(); +An example of each overload of make_shared for arrays:
++boost::shared_ptr<point[]> a1 = boost::make_shared<point[]>(size); +boost::shared_ptr<point[]> a2 = boost::make_shared<point[]>(size, x, y); +boost::shared_ptr<point[5]> a3 = boost::make_shared<point[5]>(x, y); 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<int[]> a8 = boost::make_shared_noinit<int[]>(size); boost::shared_ptr<int[5]> a9 = boost::make_shared_noinit<int[5]>();+
$Date: 2012-10-30 10:12:25 -0800 (Tue, 30 Oct 2012) $
Copyright 2012 Glen Fernandes. Distributed under the Boost