From b7fdcfd9a98239181c9dd481a33ab9d20863d092 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Wed, 10 Jun 2020 14:43:44 +0200 Subject: [PATCH] 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 <Kristof.Szabados@ericsson.com> --- common/new.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/new.cc b/common/new.cc index 66962f7e7..d9552aeea 100644 --- a/common/new.cc +++ b/common/new.cc @@ -34,11 +34,21 @@ void operator delete(void *ptr) throw() Free(ptr); } +void operator delete(void *ptr, std::size_t) throw() +{ + Free(ptr); +} + void operator delete[](void *ptr) throw() { 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 -- GitLab