forked from boostorg/core
Change A::value_type to allocator_value_type
This commit is contained in:
@@ -47,7 +47,7 @@ namespace detail {
|
|||||||
|
|
||||||
template<class A, class = void>
|
template<class A, class = void>
|
||||||
struct alloc_ptr {
|
struct alloc_ptr {
|
||||||
typedef typename allocator_value_type<A>::type* type;
|
typedef typename boost::allocator_value_type<A>::type* type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class>
|
template<class>
|
||||||
@@ -80,8 +80,8 @@ namespace detail {
|
|||||||
template<class A, class = void>
|
template<class A, class = void>
|
||||||
struct alloc_const_ptr {
|
struct alloc_const_ptr {
|
||||||
typedef typename boost::pointer_traits<typename
|
typedef typename boost::pointer_traits<typename
|
||||||
boost::allocator_pointer<A>::type>::template
|
boost::allocator_pointer<A>::type>::template rebind_to<const typename
|
||||||
rebind_to<const typename A::value_type>::type type;
|
boost::allocator_value_type<A>::type>::type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class A>
|
template<class A>
|
||||||
@@ -399,8 +399,9 @@ template<class A>
|
|||||||
class alloc_has_allocate {
|
class alloc_has_allocate {
|
||||||
template<class O>
|
template<class O>
|
||||||
static auto check(int) -> decltype(std::declval<O&>().allocate(
|
static auto check(int) -> decltype(std::declval<O&>().allocate(
|
||||||
std::declval<typename allocator_size_type<A>::type>(),
|
std::declval<typename boost::allocator_size_type<A>::type>(),
|
||||||
std::declval<typename allocator_const_void_pointer<A>::type>()));
|
std::declval<typename
|
||||||
|
boost::allocator_const_void_pointer<A>::type>()));
|
||||||
|
|
||||||
template<class>
|
template<class>
|
||||||
static alloc_none check(long);
|
static alloc_none check(long);
|
||||||
|
Reference in New Issue
Block a user