fix(util/memory): warning when compiling with clang++
This commit is contained in:
parent
4b60499f7d
commit
f05bb9daeb
1 changed files with 2 additions and 2 deletions
|
@ -160,6 +160,6 @@ void* operator new(std::size_t sz) throw(std::bad_alloc) { return lean::malloc(s
|
|||
void operator delete(void * ptr) throw() { return lean::free(ptr); }
|
||||
void* operator new[](std::size_t sz) throw(std::bad_alloc) { return lean::malloc(sz, true); }
|
||||
void operator delete[](void * ptr) throw() { return lean::free(ptr); }
|
||||
void* operator new(std::size_t sz, std::nothrow_t const &) { return lean::malloc(sz, false); }
|
||||
void* operator new[](std::size_t sz, std::nothrow_t const &) { return lean::malloc(sz, false); }
|
||||
void* operator new(std::size_t sz, std::nothrow_t const &) noexcept { return lean::malloc(sz, false); }
|
||||
void* operator new[](std::size_t sz, std::nothrow_t const &) noexcept { return lean::malloc(sz, false); }
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue