diff --git a/platform/mbed_retarget.cpp b/platform/mbed_retarget.cpp index e9f6d3c67c4..b677d64f156 100644 --- a/platform/mbed_retarget.cpp +++ b/platform/mbed_retarget.cpp @@ -1008,6 +1008,16 @@ void *operator new[](std::size_t count) return buffer; } +void *operator new(std::size_t count, const std::nothrow_t& tag) +{ + return malloc(count); +} + +void *operator new[](std::size_t count, const std::nothrow_t& tag) +{ + return malloc(count); +} + void operator delete(void *ptr) { if (ptr != NULL) {