From 6ff4930a36d1e5a373c983aa23b4290d562edd1e Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Thu, 19 Sep 2024 20:50:26 +0200 Subject: [PATCH] Add cplusplus 14 check for operator delete overload --- src/game/common/system/gamememory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/common/system/gamememory.cpp b/src/game/common/system/gamememory.cpp index 193e12545..dfede1d90 100644 --- a/src/game/common/system/gamememory.cpp +++ b/src/game/common/system/gamememory.cpp @@ -213,7 +213,7 @@ void operator delete[](void *ptr) noexcept g_dynamicMemoryAllocator->Free_Bytes(ptr); } -//#if __cplusplus >= 201402L +#if __cplusplus >= 201402L void operator delete(void *ptr, size_t sz) noexcept { operator delete(ptr); @@ -223,4 +223,4 @@ void operator delete[](void *ptr, size_t sz) noexcept { operator delete[](ptr); } -//#endif +#endif