Skip to content

Commit 3c669a7

Browse files
authored
Merge pull request #551 from sicherha/override-nothrow-delete
Fix compatibility with GNU libstdc++ < 9
2 parents ec22654 + 096b901 commit 3c669a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/mimalloc-new-delete.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ terms of the MIT license. A copy of the license can be found in the file
2525
void operator delete(void* p) noexcept { mi_free(p); };
2626
void operator delete[](void* p) noexcept { mi_free(p); };
2727

28+
void operator delete (void* p, const std::nothrow_t&) noexcept { mi_free(p); }
29+
void operator delete[](void* p, const std::nothrow_t&) noexcept { mi_free(p); }
30+
2831
void* operator new(std::size_t n) noexcept(false) { return mi_new(n); }
2932
void* operator new[](std::size_t n) noexcept(false) { return mi_new(n); }
3033

0 commit comments

Comments
 (0)