From 2d087d00035c3dbddeb65d2b6b4fe352ba7cebfd Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 21 Jun 2017 13:44:17 +0300 Subject: [PATCH] Do not use A::destroy in allocate_shared_noinit --- include/boost/smart_ptr/make_local_shared_object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/smart_ptr/make_local_shared_object.hpp b/include/boost/smart_ptr/make_local_shared_object.hpp index 518c24d..ab83d60 100644 --- a/include/boost/smart_ptr/make_local_shared_object.hpp +++ b/include/boost/smart_ptr/make_local_shared_object.hpp @@ -165,7 +165,7 @@ template typename boost::detail::lsp_if_not_array::type all A2 a2( a ); - typedef boost::detail::lsp_ms_deleter D; + typedef boost::detail::lsp_ms_deleter< T, std::allocator > D; boost::shared_ptr pt( static_cast< T* >( 0 ), boost::detail::sp_inplace_tag(), a2 );