Skip to content

Commit 7a131db

Browse files
author
Dainis Jonitis
committed
c++11 code should use nothrow instead of throw()
1 parent d3450c1 commit 7a131db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/msgpack/detail/cpp11_zone.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,21 +203,21 @@ class zone {
203203
void swap(zone& o);
204204

205205

206-
static void* operator new(std::size_t size) throw(std::bad_alloc)
206+
static void* operator new(std::size_t size)
207207
{
208208
void* p = ::malloc(size);
209209
if (!p) throw std::bad_alloc();
210210
return p;
211211
}
212-
static void operator delete(void *p) throw()
212+
static void operator delete(void *p) noexcept
213213
{
214214
::free(p);
215215
}
216-
static void* operator new(std::size_t /*size*/, void* mem) throw()
216+
static void* operator new(std::size_t /*size*/, void* mem) noexcept
217217
{
218218
return mem;
219219
}
220-
static void operator delete(void * /*p*/, void* /*mem*/) throw()
220+
static void operator delete(void * /*p*/, void* /*mem*/) noexcept
221221
{
222222
}
223223

0 commit comments

Comments
 (0)