mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
c++11 code should use nothrow instead of throw()
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user