mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
fix noexcept attribute on array delete operators
This commit is contained in:
parent
d516c9f99c
commit
1c2e0a47ca
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
void* operator new[](std::size_t n, const std::nothrow_t& tag) noexcept { (void)(tag); return mi_new_nothrow(n); }
|
void* operator new[](std::size_t n, const std::nothrow_t& tag) noexcept { (void)(tag); return mi_new_nothrow(n); }
|
||||||
|
|
||||||
#if (__cplusplus >= 201402L || _MSC_VER >= 1916)
|
#if (__cplusplus >= 201402L || _MSC_VER >= 1916)
|
||||||
void operator delete (void* p, std::size_t n) { mi_free_size(p,n); };
|
void operator delete (void* p, std::size_t n) noexcept { mi_free_size(p,n); };
|
||||||
void operator delete[](void* p, std::size_t n) { mi_free_size(p,n); };
|
void operator delete[](void* p, std::size_t n) noexcept { mi_free_size(p,n); };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (__cplusplus > 201402L || defined(__cpp_aligned_new))
|
#if (__cplusplus > 201402L || defined(__cpp_aligned_new))
|
||||||
|
|
Loading…
Add table
Reference in a new issue