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 authored and feliwir committed Sep 20, 2024
1 parent c578a53 commit 6ff4930
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 6ff4930

Please sign in to comment.