diff --git a/include/boost/smart_ptr/detail/shared_count.hpp b/include/boost/smart_ptr/detail/shared_count.hpp index 2d6d8e8..09daf90 100644 --- a/include/boost/smart_ptr/detail/shared_count.hpp +++ b/include/boost/smart_ptr/detail/shared_count.hpp @@ -231,16 +231,8 @@ public: { typedef sp_counted_impl_pda
impl_type;
-#if !defined( BOOST_NO_CXX11_ALLOCATOR )
-
typedef typename std::allocator_traits::template rebind_alloc< impl_type > A2;
-#else
-
- typedef typename A::template rebind< impl_type >::other A2;
-
-#endif
-
A2 a2( a );
#ifndef BOOST_NO_EXCEPTIONS
@@ -286,16 +278,8 @@ public:
{
typedef sp_counted_impl_pda< P, D, A > impl_type;
-#if !defined( BOOST_NO_CXX11_ALLOCATOR )
-
typedef typename std::allocator_traits::template rebind_alloc< impl_type > A2;
-#else
-
- typedef typename A::template rebind< impl_type >::other A2;
-
-#endif
-
A2 a2( a );
#ifndef BOOST_NO_EXCEPTIONS
diff --git a/include/boost/smart_ptr/detail/sp_counted_impl.hpp b/include/boost/smart_ptr/detail/sp_counted_impl.hpp
index 3c3d9f0..bb3c70f 100644
--- a/include/boost/smart_ptr/detail/sp_counted_impl.hpp
+++ b/include/boost/smart_ptr/detail/sp_counted_impl.hpp
@@ -238,16 +238,8 @@ public:
void destroy() BOOST_SP_NOEXCEPT BOOST_OVERRIDE
{
-#if !defined( BOOST_NO_CXX11_ALLOCATOR )
-
typedef typename std::allocator_traits::template rebind_alloc< this_type > A2;
-#else
-
- typedef typename A::template rebind< this_type >::other A2;
-
-#endif
-
A2 a2( a_ );
this->~this_type();
diff --git a/include/boost/smart_ptr/make_local_shared_object.hpp b/include/boost/smart_ptr/make_local_shared_object.hpp
index 4545c5e..aca931f 100644
--- a/include/boost/smart_ptr/make_local_shared_object.hpp
+++ b/include/boost/smart_ptr/make_local_shared_object.hpp
@@ -59,16 +59,8 @@ private:
{
T * p = reinterpret_cast< T* >( storage_.data_ );
-#if !defined( BOOST_NO_CXX11_ALLOCATOR )
-
std::allocator_traits::destroy( a_, p );
-#else
-
- p->~T();
-
-#endif
-
initialized_ = false;
}
}
@@ -113,16 +105,8 @@ public:
template