Skip to content

Commit

Permalink
Merge pull request sakura-editor#386 from berryzplus/feature/upgrade_…
Browse files Browse the repository at this point in the history
…delete_signature

deleteのオーバーロードがGCCに怒られる対応
  • Loading branch information
berryzplus authored Sep 24, 2018
2 parents b978d59 + 2e83cc3 commit 1880868
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions sakura_core/config/build_config.h
Original file line number Diff line number Diff line change
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 1880868

Please sign in to comment.