From 916c8a7d7c3fe36f68b2074734cdc55ae32b3615 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 6 Oct 2024 21:03:51 +0300 Subject: [PATCH] Remove uses of boost::type_with_alignment --- include/boost/smart_ptr/allocate_shared_array.hpp | 3 +-- include/boost/smart_ptr/detail/quick_allocator.hpp | 5 ++--- include/boost/smart_ptr/make_shared_object.hpp | 5 ++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/include/boost/smart_ptr/allocate_shared_array.hpp b/include/boost/smart_ptr/allocate_shared_array.hpp index a68421e..59004bc 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 namespace boost { @@ -137,7 +136,7 @@ class sp_array_creator { offset = sp_array_offset::value }; - typedef typename boost::type_with_alignment::value>::type type; public: diff --git a/include/boost/smart_ptr/detail/quick_allocator.hpp b/include/boost/smart_ptr/detail/quick_allocator.hpp index 42f3ddd..8ec6dfa 100644 --- a/include/boost/smart_ptr/detail/quick_allocator.hpp +++ b/include/boost/smart_ptr/detail/quick_allocator.hpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include // ::operator new, ::operator delete @@ -29,13 +29,12 @@ namespace boost { - namespace detail { template union freeblock { - typedef typename boost::type_with_alignment::type aligner_type; + typedef typename sp_type_with_alignment::type aligner_type; aligner_type aligner; char bytes[size]; freeblock * next; diff --git a/include/boost/smart_ptr/make_shared_object.hpp b/include/boost/smart_ptr/make_shared_object.hpp index cca81b3..cc68ce3 100644 --- a/include/boost/smart_ptr/make_shared_object.hpp +++ b/include/boost/smart_ptr/make_shared_object.hpp @@ -12,7 +12,7 @@ // See http://www.boost.org/libs/smart_ptr/ for documentation. #include -#include +#include #include #include #include @@ -21,7 +21,6 @@ namespace boost { - namespace detail { @@ -30,7 +29,7 @@ template< std::size_t N, std::size_t A > struct sp_aligned_storage union type { char data_[ N ]; - typename boost::type_with_alignment< A >::type align_; + typename sp_type_with_alignment< A >::type align_; }; };