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: Kristof Szabados's avatarKristof Szabados <>
parent ab835a0a
...@@ -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()
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);
/**************************************************************************/ /**************************************************************************/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment