From 5abadf4472ad03de8ef11b6727be4495bf1687ab Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 6 Dec 2021 16:35:37 -0500 Subject: [PATCH] Change A::value_type to allocator_value_type --- include/boost/core/allocator_access.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/boost/core/allocator_access.hpp b/include/boost/core/allocator_access.hpp index 5caba94..1fee1e6 100644 --- a/include/boost/core/allocator_access.hpp +++ b/include/boost/core/allocator_access.hpp @@ -47,7 +47,7 @@ namespace detail { template struct alloc_ptr { - typedef typename allocator_value_type::type* type; + typedef typename boost::allocator_value_type::type* type; }; template @@ -80,8 +80,8 @@ namespace detail { template struct alloc_const_ptr { typedef typename boost::pointer_traits::type>::template - rebind_to::type type; + boost::allocator_pointer::type>::template rebind_to::type>::type type; }; template @@ -399,8 +399,9 @@ template class alloc_has_allocate { template static auto check(int) -> decltype(std::declval().allocate( - std::declval::type>(), - std::declval::type>())); + std::declval::type>(), + std::declval::type>())); template static alloc_none check(long);