Define void operator delete[](void *p, std::size_t n)
in new_delete.cpp (#430)
This commit is contained in:
parent
048fcdefd6
commit
cc8b2156fb
@ -17,10 +17,16 @@ void *operator new[](std::size_t n) {
|
||||
return std::malloc(n);
|
||||
}
|
||||
|
||||
void operator delete(void *p, __unused std::size_t n) noexcept { std::free(p); }
|
||||
|
||||
void operator delete(void *p) { std::free(p); }
|
||||
|
||||
void operator delete[](void *p) noexcept { std::free(p); }
|
||||
|
||||
#if __cpp_sized_deallocation
|
||||
|
||||
void operator delete(void *p, __unused std::size_t n) noexcept { std::free(p); }
|
||||
|
||||
void operator delete[](void *p, __unused std::size_t n) noexcept { std::free(p); }
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user