Unverified Commit 6a717473 authored by Pharap's avatar Pharap Committed by GitHub

Add noexcept specifier to placement new operator

The standard mandates that placement new should be have a noexcept specifier.
parent b410611f
......@@ -26,7 +26,7 @@ void *operator new[](size_t size) {
return malloc(size);
}
void * operator new(size_t size, void * ptr) {
void * operator new(size_t size, void * ptr) noexcept {
(void)size;
return ptr;
}
......
......@@ -23,7 +23,7 @@
void * operator new(size_t size);
void * operator new[](size_t size);
void * operator new(size_t size, void * ptr);
void * operator new(size_t size, void * ptr) noexcept;
void operator delete(void * ptr);
void operator delete[](void * ptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment