c++11 code should use nothrow instead of throw()

This commit is contained in:
Dainis Jonitis 2015-07-09 15:37:17 +03:00
parent d3450c1fce
commit 7a131db2a0

View File

@ -203,21 +203,21 @@ public:
void swap(zone& o);
static void* operator new(std::size_t size) throw(std::bad_alloc)
static void* operator new(std::size_t size)
{
void* p = ::malloc(size);
if (!p) throw std::bad_alloc();
return p;
}
static void operator delete(void *p) throw()
static void operator delete(void *p) noexcept
{
::free(p);
}
static void* operator new(std::size_t /*size*/, void* mem) throw()
static void* operator new(std::size_t /*size*/, void* mem) noexcept
{
return mem;
}
static void operator delete(void * /*p*/, void* /*mem*/) throw()
static void operator delete(void * /*p*/, void* /*mem*/) noexcept
{
}