Added the nothrow variants of the new operator.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4549 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-09-08 02:33:37 +00:00
parent 21b8eada67
commit e731e11702

View File

@ -39,6 +39,20 @@ operator new[](size_t size) throw (std::bad_alloc)
}
inline void *
operator new(size_t size, const std::nothrow_t &) throw ()
{
return malloc(size);
}
inline void *
operator new[](size_t size, const std::nothrow_t &) throw ()
{
return malloc(size);
}
inline void
operator delete(void *ptr) throw ()
{