Use allocator)traits<>::destroy in sp_counted_impl_pda::destroy

This commit is contained in:
Peter Dimov
2014-02-07 17:37:00 +02:00
parent e1f170cd49
commit a64cc5c41c

View File

@ -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 );
}