From e8595a05af337caea445be872f041c731bf2592e Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Tue, 4 Feb 2014 08:43:36 -0800 Subject: [PATCH] Fix use of rebind_traits and rebind_alloc --- include/boost/smart_ptr/detail/array_allocator.hpp | 11 ++++------- include/boost/smart_ptr/detail/array_deleter.hpp | 5 ++--- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/boost/smart_ptr/detail/array_allocator.hpp b/include/boost/smart_ptr/detail/array_allocator.hpp index 3371545..8b682eb 100644 --- a/include/boost/smart_ptr/detail/array_allocator.hpp +++ b/include/boost/smart_ptr/detail/array_allocator.hpp @@ -46,16 +46,13 @@ namespace boost { #if !defined(BOOST_NO_CXX11_ALLOCATOR) typedef typename std::allocator_traits:: - template rebind_alloc::other YA; - + template rebind_alloc YA; typedef typename std::allocator_traits:: - template rebind_alloc::other CA; - + template rebind_alloc CA; typedef typename std::allocator_traits:: - template rebind_traits::other YT; - + template rebind_traits YT; typedef typename std::allocator_traits:: - template rebind_traits::other CT; + template rebind_traits CT; #else typedef typename A::template rebind::other YA; typedef typename A::template rebind::other CA; diff --git a/include/boost/smart_ptr/detail/array_deleter.hpp b/include/boost/smart_ptr/detail/array_deleter.hpp index 7d99795..529c112 100644 --- a/include/boost/smart_ptr/detail/array_deleter.hpp +++ b/include/boost/smart_ptr/detail/array_deleter.hpp @@ -90,10 +90,9 @@ namespace boost { private: #if !defined(BOOST_NO_CXX11_ALLOCATOR) typedef typename std::allocator_traits:: - template rebind_alloc::other TA; - + template rebind_alloc TA; typedef typename std::allocator_traits:: - template rebind_traits::other TT; + template rebind_traits TT; #endif void destroy(type*, std::size_t, boost::true_type) {