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:
@@ -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
|
inline void
|
||||||
operator delete(void *ptr) throw ()
|
operator delete(void *ptr) throw ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user