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() {