Skip to content

Commit

Permalink
Add cplusplus 14 check for operator delete overload
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Sep 19, 2024
1 parent bd4c2e2 commit 0f61ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/common/system/gamememory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -223,4 +223,4 @@ void operator delete[](void *ptr, size_t sz) noexcept
{
operator delete[](ptr);
}
//#endif
#endif

0 comments on commit 0f61ac9

Please sign in to comment.