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:
parent
21b8eada67
commit
e731e11702
@ -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 ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user