C++14: Add two-argument delete() implementations.

Just passing to one-argument versions.
This commit is contained in:
Jared Boone 2017-01-05 17:13:03 -08:00
parent a22dc150bc
commit 0d1e48ae9c
2 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,14 @@ void operator delete[](void* p) noexcept {
chHeapFree(p);
}
void operator delete(void* ptr, std::size_t) noexcept {
::operator delete(ptr);
}
void operator delete[](void* ptr, std::size_t) noexcept {
::operator delete(ptr);
}
extern uint8_t __heap_base__[];
extern uint8_t __heap_end__[];

View File

@ -30,6 +30,8 @@ void* operator new(size_t size);
void* operator new[](size_t size);
void operator delete(void* p);
void operator delete[](void* p);
void operator delete(void* ptr, std::size_t);
void operator delete[](void* ptr, std::size_t);
namespace chibios {