}; // end of namespace
-void* operator new (size_t size) throw (dHLT::OutOfMemory)
+void* operator new (size_t size) throw (std::bad_alloc)
{
void* memory = malloc(size);
if (memory == NULL) dHLT::ThrowOutOfMemory();
};
-void* operator new [] (size_t size) throw (dHLT::OutOfMemory)
+void* operator new [] (size_t size) throw (std::bad_alloc)
{
void* memory = malloc(size);
if (memory == NULL) dHLT::ThrowOutOfMemory();
These new operators throw dHLT::OutOfMemory exceptions if the system is out of
memory.
*/
-void* operator new (size_t size) throw (dHLT::OutOfMemory);
-void* operator new [] (size_t size) throw (dHLT::OutOfMemory);
+void* operator new (std::size_t size) throw (std::bad_alloc);
+void* operator new [] (std::size_t size) throw (std::bad_alloc);
void operator delete (void* memory) throw ();
void operator delete [] (void* memory) throw ();