forked from boostorg/smart_ptr
Use allocator)traits<>::destroy in sp_counted_impl_pda::destroy
This commit is contained in:
@ -236,7 +236,16 @@ public:
|
||||
|
||||
A2 a2( a_ );
|
||||
|
||||
#if !defined( BOOST_NO_CXX11_ALLOCATOR )
|
||||
|
||||
std::allocator_traits<A2>::destroy( a2, this );
|
||||
|
||||
#else
|
||||
|
||||
this->~this_type();
|
||||
|
||||
#endif
|
||||
|
||||
a2.deallocate( this, 1 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user