Merge pull request #326 from dpgeorge/heapallocator-remove-throw

Remove "throw" exception specifications because they are deprecated.
master
Joe Finney 5 years ago committed by GitHub
commit 6fa716f779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -136,7 +136,7 @@ inline void native_free(void *p)
/**
* Overrides the 'new' operator globally, and redirects calls to the micro:bit heap allocator.
*/
inline void* operator new(size_t size) throw(std::bad_alloc)
inline void* operator new(size_t size)
{
return microbit_malloc(size);
}
@ -144,7 +144,7 @@ inline void* operator new(size_t size) throw(std::bad_alloc)
/**
* Overrides the 'new' operator globally, and redirects calls to the micro:bit theap allocator.
*/
inline void* operator new[](size_t size) throw(std::bad_alloc)
inline void* operator new[](size_t size)
{
return microbit_malloc(size);
}
@ -152,7 +152,7 @@ inline void* operator new[](size_t size) throw(std::bad_alloc)
/**
* Overrides the 'delete' operator globally, and redirects calls to the micro:bit theap allocator.
*/
inline void operator delete(void *ptr) throw()
inline void operator delete(void *ptr)
{
microbit_free(ptr);
}

Loading…
Cancel
Save