Remove useless throw() and fix TBB warnings.

This commit is contained in:
XTZGZoReX 2009-11-06 18:17:53 +01:00
parent 16dcc0673a
commit 4d2f4726fd
3 changed files with 66 additions and 66 deletions

View file

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