From 65b20d06853007286991d7db820ddd554940f084 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 6 Nov 2018 17:17:10 +0100 Subject: [PATCH] Better solution for latest commit --- mesosphere/include/mesosphere/interfaces/IClient.hpp | 2 +- mesosphere/include/mesosphere/interfaces/IServer.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesosphere/include/mesosphere/interfaces/IClient.hpp b/mesosphere/include/mesosphere/interfaces/IClient.hpp index 754431ed4..ea86e9e94 100644 --- a/mesosphere/include/mesosphere/interfaces/IClient.hpp +++ b/mesosphere/include/mesosphere/interfaces/IClient.hpp @@ -18,7 +18,7 @@ class IClient : public IClientTag { using ClientClass = Client; using ServerClass = Server; - void *operator new(size_t sz) noexcept { for (;;); } + void *operator new(size_t sz) noexcept = delete; void operator delete(void *ptr) noexcept {} ~IClient() diff --git a/mesosphere/include/mesosphere/interfaces/IServer.hpp b/mesosphere/include/mesosphere/interfaces/IServer.hpp index 7ef459392..f367a7869 100644 --- a/mesosphere/include/mesosphere/interfaces/IServer.hpp +++ b/mesosphere/include/mesosphere/interfaces/IServer.hpp @@ -18,8 +18,8 @@ class IServer : public IServerTag { using ClientClass = Client; using ServerClass = Server; - void *operator new(size_t sz) noexcept { for (;;); } - void operator delete(void *ptr) noexcept {} + void *operator new(size_t sz) noexcept = delete; + void operator delete(void *ptr) noexcept {}; ~IServer() {