mirror of https://github.com/ARMmbed/mbed-os.git
Platform: Replace non throwing versions of new operator.
This change prevents inclusion of non throwing versions of the new operator from the compiler standard library. On GCC, the non throwing version bring with it some portion of the exception support code.pull/5165/head
parent
4de448142b
commit
017b8f0fc7
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue