diff --git a/Lib/Allocator.hpp b/Lib/Allocator.hpp index 113fde3ba7..000db370bf 100644 --- a/Lib/Allocator.hpp +++ b/Lib/Allocator.hpp @@ -291,10 +291,10 @@ class Allocator { * See also Allocator::AllowBypassing and the BYPASSING_ALLOCATOR macro. */ static unsigned _tolerantZone; - friend void* ::operator new(size_t) throw(std::bad_alloc); - friend void* ::operator new[](size_t) throw(std::bad_alloc); - friend void ::operator delete(void*) throw(); - friend void ::operator delete[](void*) throw(); + friend void* ::operator new(size_t); // throw(std::bad_alloc); // dynamic exception specifications are deprecated in C++11 + friend void* ::operator new[](size_t); // throw(std::bad_alloc); + friend void ::operator delete(void*); // throw(); + friend void ::operator delete[](void*); // throw(); #endif }; // class Allocator