diff --git a/libaxx/src/new.cpp b/libaxx/src/new.cpp index ad2abcb34..e26fa85f0 100644 --- a/libaxx/src/new.cpp +++ b/libaxx/src/new.cpp @@ -1,9 +1,11 @@ #include +// See the C++ standard, section 3.7.4 for those definitions + void * operator new (unsigned int size) { return malloc(size); } -void operator delete (void * ptr) { +void operator delete (void * ptr) noexcept { free(ptr); }