forked from boostorg/smart_ptr
Fix use of rebind_traits and rebind_alloc
This commit is contained in:
@ -46,16 +46,13 @@ namespace boost {
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
|
||||
typedef typename std::allocator_traits<A>::
|
||||
template rebind_alloc<Y>::other YA;
|
||||
|
||||
template rebind_alloc<Y> YA;
|
||||
typedef typename std::allocator_traits<A>::
|
||||
template rebind_alloc<char>::other CA;
|
||||
|
||||
template rebind_alloc<char> CA;
|
||||
typedef typename std::allocator_traits<A>::
|
||||
template rebind_traits<Y>::other YT;
|
||||
|
||||
template rebind_traits<Y> YT;
|
||||
typedef typename std::allocator_traits<A>::
|
||||
template rebind_traits<char>::other CT;
|
||||
template rebind_traits<char> CT;
|
||||
#else
|
||||
typedef typename A::template rebind<Y>::other YA;
|
||||
typedef typename A::template rebind<char>::other CA;
|
||||
|
@ -90,10 +90,9 @@ namespace boost {
|
||||
private:
|
||||
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
|
||||
typedef typename std::allocator_traits<A>::
|
||||
template rebind_alloc<type>::other TA;
|
||||
|
||||
template rebind_alloc<type> TA;
|
||||
typedef typename std::allocator_traits<A>::
|
||||
template rebind_traits<type>::other TT;
|
||||
template rebind_traits<type> TT;
|
||||
#endif
|
||||
|
||||
void destroy(type*, std::size_t, boost::true_type) {
|
||||
|
Reference in New Issue
Block a user