Skip to content
Snippets Groups Projects
Commit b7fdcfd9 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

newer c++ also likes to have the new operators available.

Adding them should remove some warnings (lets see if older systems in our CI also like them)

Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent ab835a0a
No related branches found
No related tags found
No related merge requests found
...@@ -34,11 +34,21 @@ void operator delete(void *ptr) throw() ...@@ -34,11 +34,21 @@ void operator delete(void *ptr) throw()
Free(ptr); Free(ptr);
} }
void operator delete(void *ptr, std::size_t) throw()
{
Free(ptr);
}
void operator delete[](void *ptr) throw() void operator delete[](void *ptr) throw()
{ {
if (ptr != static_cast<void*>(&dummy)) Free(ptr); if (ptr != static_cast<void*>(&dummy)) Free(ptr);
} }
void operator delete[](void *ptr, std::size_t) throw()
{
if (ptr != static_cast<void*>(&dummy)) Free(ptr);
}
/**************************************************************************/ /**************************************************************************/
#ifdef MEMORY_DEBUG #ifdef MEMORY_DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment