Fix method signature

This commit is contained in:
Carsten Larsen
2017-01-09 20:59:54 +01:00
parent 238871bd73
commit ea16f22b9a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -163,11 +163,11 @@ inline void operator delete[] (void* ptr) {
#ifdef __cplusplus
#if (__GNUC__ > 2) || defined (_WIN32)
#include <new>
inline void* operator new (size_t size) throw() {
inline void* operator new (size_t size) throw(std::bad_alloc) {
return AllocMemSafe(size);
}
inline void* operator new[] (size_t size) throw() {
inline void* operator new[] (size_t size) throw(std::bad_alloc) {
return AllocMemSafe(size);
}