Remove BOOST_BORLANDC workarounds

This commit is contained in:
Peter Dimov
2024-09-24 18:08:14 +03:00
parent d908c4d288
commit d66b173710
6 changed files with 0 additions and 66 deletions

View File

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