diff --git a/sakura_core/config/build_config.cpp b/sakura_core/config/build_config.cpp index ed53aec770..82cff965b9 100644 --- a/sakura_core/config/build_config.cpp +++ b/sakura_core/config/build_config.cpp @@ -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); } diff --git a/sakura_core/config/build_config.h b/sakura_core/config/build_config.h index 089792962c..7e3e726f50 100644 --- a/sakura_core/config/build_config.h +++ b/sakura_core/config/build_config.h @@ -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