mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-29 20:37:13 +02:00
Remove BOOST_BORLANDC workarounds
This commit is contained in:
@ -73,15 +73,11 @@ void * operator new(size_t n) throw(bad_alloc)
|
||||
return p;
|
||||
}
|
||||
|
||||
#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551)
|
||||
|
||||
void * operator new(size_t n, nothrow_t const &) throw()
|
||||
{
|
||||
return allocate(n, allocated_scalar);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void * operator new[](size_t n) throw(bad_alloc)
|
||||
{
|
||||
void * p = allocate(n, allocated_array);
|
||||
@ -95,15 +91,11 @@ void * operator new[](size_t n) throw(bad_alloc)
|
||||
return p;
|
||||
}
|
||||
|
||||
#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551)
|
||||
|
||||
void * operator new[](size_t n, nothrow_t const &) throw()
|
||||
{
|
||||
return allocate(n, allocated_array);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// debug hooks
|
||||
|
||||
namespace boost
|
||||
@ -205,15 +197,11 @@ void operator delete(void * p) throw()
|
||||
free(pm);
|
||||
}
|
||||
|
||||
#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551)
|
||||
|
||||
void operator delete(void * p, nothrow_t const &) throw()
|
||||
{
|
||||
::operator delete(p);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void operator delete[](void * p) throw()
|
||||
{
|
||||
if(p == 0) return;
|
||||
@ -231,13 +219,9 @@ void operator delete[](void * p) throw()
|
||||
free(pm);
|
||||
}
|
||||
|
||||
#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551)
|
||||
|
||||
void operator delete[](void * p, nothrow_t const &) throw()
|
||||
{
|
||||
::operator delete[](p);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif // defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
|
||||
|
Reference in New Issue
Block a user