Skip to content

Commit

Permalink
deleteのオーバーロードがGCCに怒られる対応
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Aug 31, 2018
1 parent 996a7d1 commit d7b82e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sakura_core/config/build_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ void* operator new[](size_t nSize)
return p;
}

void operator delete(void* p)
void operator delete(void* p) noexcept
{
::free(p);
}

void operator delete[](void* p)
void operator delete[](void* p) noexcept
{
::free(p);
}
Expand Down
6 changes: 3 additions & 3 deletions sakura_core/config/build_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static const bool UNICODE_BOOL=false;

//newされた領域をわざと汚すかどうか (デバッグ用)
#ifdef _DEBUG
#define FILL_STRANGE_IN_NEW_MEMORY
# define FILL_STRANGE_IN_NEW_MEMORY
#endif


Expand Down Expand Up @@ -95,8 +95,8 @@ static const bool UNICODE_BOOL=false;
#endif
#endif
void* operator new[](size_t nSize);
void operator delete(void* p);
void operator delete[](void* p);
void operator delete(void* p) noexcept;
void operator delete[](void* p) noexcept;
#endif


Expand Down

0 comments on commit d7b82e4

Please sign in to comment.