mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-02 06:04:27 +02:00
@@ -200,7 +200,7 @@ public:
|
|||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
{
|
{
|
||||||
D()( p ); // delete p
|
D::operator_fn( p ); // delete p
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ public:
|
|||||||
|
|
||||||
if( pi_ == 0 )
|
if( pi_ == 0 )
|
||||||
{
|
{
|
||||||
D()( p ); // delete p
|
D::operator_fn( p ); // delete p
|
||||||
boost::throw_exception( std::bad_alloc() );
|
boost::throw_exception( std::bad_alloc() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ public:
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
D()( p );
|
D::operator_fn( p );
|
||||||
|
|
||||||
if( pi_ != 0 )
|
if( pi_ != 0 )
|
||||||
{
|
{
|
||||||
@@ -306,7 +306,7 @@ public:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
D()( p );
|
D::operator_fn( p );
|
||||||
boost::throw_exception( std::bad_alloc() );
|
boost::throw_exception( std::bad_alloc() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -87,6 +87,10 @@ public:
|
|||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void operator_fn( T* ) // operator() can't be static
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void * address() BOOST_NOEXCEPT
|
void * address() BOOST_NOEXCEPT
|
||||||
{
|
{
|
||||||
return storage_.data_;
|
return storage_.data_;
|
||||||
|
Reference in New Issue
Block a user