From 5072045f1250888727d2dda1ce0b0dc59ac471d7 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 29 Apr 2019 00:37:55 -0400 Subject: [PATCH] Use boost::noinit_adapt free function --- include/boost/smart_ptr/allocate_local_shared_array.hpp | 5 ++--- include/boost/smart_ptr/allocate_shared_array.hpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/boost/smart_ptr/allocate_local_shared_array.hpp b/include/boost/smart_ptr/allocate_local_shared_array.hpp index 8080144..8b7a426 100644 --- a/include/boost/smart_ptr/allocate_local_shared_array.hpp +++ b/include/boost/smart_ptr/allocate_local_shared_array.hpp @@ -172,7 +172,7 @@ inline typename enable_if_::value, local_shared_ptr >::type allocate_local_shared_noinit(const A& allocator, std::size_t count) { - return boost::allocate_local_shared(boost::noinit_adaptor(allocator), + return boost::allocate_local_shared(boost::noinit_adapt(allocator), count); } @@ -181,8 +181,7 @@ inline typename enable_if_::value, local_shared_ptr >::type allocate_local_shared_noinit(const A& allocator) { - return boost::allocate_local_shared(boost:: - noinit_adaptor(allocator)); + return boost::allocate_local_shared(boost::noinit_adapt(allocator)); } } /* boost */ diff --git a/include/boost/smart_ptr/allocate_shared_array.hpp b/include/boost/smart_ptr/allocate_shared_array.hpp index e412749..5022bf2 100644 --- a/include/boost/smart_ptr/allocate_shared_array.hpp +++ b/include/boost/smart_ptr/allocate_shared_array.hpp @@ -457,15 +457,14 @@ template inline typename enable_if_::value, shared_ptr >::type allocate_shared_noinit(const A& allocator, std::size_t count) { - return boost::allocate_shared(boost::noinit_adaptor(allocator), - count); + return boost::allocate_shared(boost::noinit_adapt(allocator), count); } template inline typename enable_if_::value, shared_ptr >::type allocate_shared_noinit(const A& allocator) { - return boost::allocate_shared(boost::noinit_adaptor(allocator)); + return boost::allocate_shared(boost::noinit_adapt(allocator)); } } /* boost */