diff --git a/include/boost/smart_ptr/allocate_local_shared_array.hpp b/include/boost/smart_ptr/allocate_local_shared_array.hpp index 688626e..6476113 100644 --- a/include/boost/smart_ptr/allocate_local_shared_array.hpp +++ b/include/boost/smart_ptr/allocate_local_shared_array.hpp @@ -71,7 +71,7 @@ private: } /* detail */ template -inline typename std::enable_if::value, +inline typename std::enable_if::value, local_shared_ptr >::type allocate_local_shared(const A& allocator, std::size_t count) { @@ -114,7 +114,7 @@ allocate_local_shared(const A& allocator) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, local_shared_ptr >::type allocate_local_shared(const A& allocator, std::size_t count, const typename std::remove_extent::type& value) @@ -159,7 +159,7 @@ allocate_local_shared(const A& allocator, } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, local_shared_ptr >::type allocate_local_shared_noinit(const A& allocator, std::size_t count) { diff --git a/include/boost/smart_ptr/allocate_shared_array.hpp b/include/boost/smart_ptr/allocate_shared_array.hpp index ea100d0..a68421e 100644 --- a/include/boost/smart_ptr/allocate_shared_array.hpp +++ b/include/boost/smart_ptr/allocate_shared_array.hpp @@ -13,7 +13,6 @@ Distributed under the Boost Software License, Version 1.0. #include #include #include -#include #include #include @@ -254,7 +253,7 @@ private: } /* detail */ template -inline typename std::enable_if::value, shared_ptr >::type +inline typename std::enable_if::value, shared_ptr >::type allocate_shared(const A& allocator, std::size_t count) { typedef typename detail::sp_array_element::type element; @@ -291,7 +290,7 @@ allocate_shared(const A& allocator) } template -inline typename std::enable_if::value, shared_ptr >::type +inline typename std::enable_if::value, shared_ptr >::type allocate_shared(const A& allocator, std::size_t count, const typename std::remove_extent::type& value) { @@ -330,7 +329,7 @@ allocate_shared(const A& allocator, } template -inline typename std::enable_if::value, shared_ptr >::type +inline typename std::enable_if::value, shared_ptr >::type allocate_shared_noinit(const A& allocator, std::size_t count) { return boost::allocate_shared(boost::noinit_adapt(allocator), count); diff --git a/include/boost/smart_ptr/allocate_unique.hpp b/include/boost/smart_ptr/allocate_unique.hpp index 6e0d72b..13c89db 100644 --- a/include/boost/smart_ptr/allocate_unique.hpp +++ b/include/boost/smart_ptr/allocate_unique.hpp @@ -15,7 +15,6 @@ Distributed under the Boost Software License, Version 1.0. #include #include #include -#include #include #include #include @@ -388,7 +387,7 @@ allocate_unique_noinit(const A& alloc) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, std::unique_ptr > >::type allocate_unique(const A& alloc, std::size_t size) { @@ -411,7 +410,7 @@ allocate_unique(const A& alloc) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, std::unique_ptr > > >::type allocate_unique_noinit(const A& alloc, std::size_t size) { @@ -428,7 +427,7 @@ allocate_unique_noinit(const A& alloc) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, std::unique_ptr > >::type allocate_unique(const A& alloc, std::size_t size, const typename std::remove_extent::type& value) diff --git a/include/boost/smart_ptr/make_local_shared_array.hpp b/include/boost/smart_ptr/make_local_shared_array.hpp index fd14d77..e9089fd 100644 --- a/include/boost/smart_ptr/make_local_shared_array.hpp +++ b/include/boost/smart_ptr/make_local_shared_array.hpp @@ -35,7 +35,7 @@ make_local_shared(const typename std::remove_extent::type& value) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, local_shared_ptr >::type make_local_shared(std::size_t size) { @@ -44,7 +44,7 @@ make_local_shared(std::size_t size) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, local_shared_ptr >::type make_local_shared(std::size_t size, const typename std::remove_extent::type& value) @@ -63,7 +63,7 @@ make_local_shared_noinit() } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, local_shared_ptr >::type make_local_shared_noinit(std::size_t size) { diff --git a/include/boost/smart_ptr/make_shared_array.hpp b/include/boost/smart_ptr/make_shared_array.hpp index 1ee9dcd..a0aa62b 100644 --- a/include/boost/smart_ptr/make_shared_array.hpp +++ b/include/boost/smart_ptr/make_shared_array.hpp @@ -32,7 +32,7 @@ make_shared(const typename std::remove_extent::type& value) } template -inline typename std::enable_if::value, shared_ptr >::type +inline typename std::enable_if::value, shared_ptr >::type make_shared(std::size_t size) { return boost::allocate_shared(boost::default_allocator -inline typename std::enable_if::value, shared_ptr >::type +inline typename std::enable_if::value, shared_ptr >::type make_shared(std::size_t size, const typename std::remove_extent::type& value) { return boost::allocate_shared(boost::default_allocator -inline typename std::enable_if::value, shared_ptr >::type +inline typename std::enable_if::value, shared_ptr >::type make_shared_noinit(std::size_t size) { return boost::allocate_shared_noinit(boost::default_allocator +#include #include -#include #include +#include namespace boost { @@ -44,7 +44,7 @@ make_unique_noinit() } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, std::unique_ptr >::type make_unique(std::size_t size) { @@ -52,7 +52,7 @@ make_unique(std::size_t size) } template -inline typename std::enable_if::value, +inline typename std::enable_if::value, std::unique_ptr >::type make_unique_noinit(std::size_t size) {