mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
Remove useless throw() and fix TBB warnings.
This commit is contained in:
parent
16dcc0673a
commit
4d2f4726fd
3 changed files with 66 additions and 66 deletions
|
|
@ -22,14 +22,14 @@
|
|||
|
||||
#include "../../dep/tbb/include/tbb/scalable_allocator.h"
|
||||
|
||||
void * operator new(size_t sz) throw (std::bad_alloc)
|
||||
void * operator new(size_t sz)
|
||||
{
|
||||
void *res = scalable_malloc(sz);
|
||||
if (NULL == res) throw std::bad_alloc();
|
||||
return res;
|
||||
}
|
||||
|
||||
void* operator new[](size_t sz) throw (std::bad_alloc)
|
||||
void* operator new[](size_t sz)
|
||||
{
|
||||
void *res = scalable_malloc(sz);
|
||||
if (NULL == res) throw std::bad_alloc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue