mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
Merge pull request #551 from sicherha/override-nothrow-delete
Fix compatibility with GNU libstdc++ < 9
This commit is contained in:
commit
3c669a70f3
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
void operator delete(void* p) noexcept { mi_free(p); };
|
void operator delete(void* p) noexcept { mi_free(p); };
|
||||||
void operator delete[](void* p) noexcept { mi_free(p); };
|
void operator delete[](void* p) noexcept { mi_free(p); };
|
||||||
|
|
||||||
|
void operator delete (void* p, const std::nothrow_t&) noexcept { mi_free(p); }
|
||||||
|
void operator delete[](void* p, const std::nothrow_t&) noexcept { mi_free(p); }
|
||||||
|
|
||||||
void* operator new(std::size_t n) noexcept(false) { return mi_new(n); }
|
void* operator new(std::size_t n) noexcept(false) { return mi_new(n); }
|
||||||
void* operator new[](std::size_t n) noexcept(false) { return mi_new(n); }
|
void* operator new[](std::size_t n) noexcept(false) { return mi_new(n); }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue