|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81609 - trunk/boost/smart_ptr
From: glenfe_at_[hidden]
Date: 2012-11-28 01:26:51
Author: glenfe
Date: 2012-11-28 01:26:50 EST (Wed, 28 Nov 2012)
New Revision: 81609
URL: http://svn.boost.org/trac/boost/changeset/81609
Log:
Consistent formatting across overloads of make_shared and allocate_shared (array forms).
Text files modified:
trunk/boost/smart_ptr/allocate_shared_array.hpp | 8 ++------
trunk/boost/smart_ptr/make_shared_array.hpp | 12 +++---------
2 files changed, 5 insertions(+), 15 deletions(-)
Modified: trunk/boost/smart_ptr/allocate_shared_array.hpp
==============================================================================
--- trunk/boost/smart_ptr/allocate_shared_array.hpp (original)
+++ trunk/boost/smart_ptr/allocate_shared_array.hpp 2012-11-28 01:26:50 EST (Wed, 28 Nov 2012)
@@ -62,9 +62,7 @@
typedef typename boost::detail::array_base<T1>::type T2;
T1* p1 = 0;
T2* p2 = 0;
- enum {
- N = boost::detail::array_total<T>::size
- };
+ enum { N = boost::detail::array_total<T>::size };
boost::detail::allocate_array_helper<A, T2[N]> a1(allocator, &p2);
boost::detail::array_deleter<T2[N]> d1;
boost::shared_ptr<T> s1(p1, d1, a1);
@@ -108,9 +106,7 @@
T1* p1 = 0;
T2* p2 = 0;
T3* p3 = 0;
- enum {
- N = boost::detail::array_total<T>::size
- };
+ enum { N = boost::detail::array_total<T>::size };
boost::detail::allocate_array_helper<A, T2[N]> a1(allocator, &p2);
boost::detail::array_deleter<T2[N]> d1;
boost::shared_ptr<T> s1(p1, d1, a1);
Modified: trunk/boost/smart_ptr/make_shared_array.hpp
==============================================================================
--- trunk/boost/smart_ptr/make_shared_array.hpp (original)
+++ trunk/boost/smart_ptr/make_shared_array.hpp 2012-11-28 01:26:50 EST (Wed, 28 Nov 2012)
@@ -62,9 +62,7 @@
typedef typename boost::detail::array_base<T1>::type T2;
T1* p1 = 0;
T2* p2 = 0;
- enum {
- N = boost::detail::array_total<T>::size
- };
+ enum { N = boost::detail::array_total<T>::size };
boost::detail::make_array_helper<T2[N]> a1(&p2);
boost::detail::array_deleter<T2[N]> d1;
boost::shared_ptr<T> s1(p1, d1, a1);
@@ -106,9 +104,7 @@
T1* p1 = 0;
T2* p2 = 0;
T3* p3 = 0;
- enum {
- N = boost::detail::array_total<T>::size
- };
+ enum { N = boost::detail::array_total<T>::size };
boost::detail::make_array_helper<T2[N]> a1(&p2);
boost::detail::array_deleter<T2[N]> d1;
boost::shared_ptr<T> s1(p1, d1, a1);
@@ -188,9 +184,7 @@
typedef typename boost::detail::array_base<T1>::type T2;
T1* p1 = 0;
T2* p2 = 0;
- enum {
- N = boost::detail::array_total<T>::size
- };
+ enum { N = boost::detail::array_total<T>::size };
boost::detail::make_array_helper<T2[N]> a1(&p2);
boost::detail::array_deleter<T2[N]> d1;
boost::shared_ptr<T> s1(p1, d1, a1);
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