ports/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h
Dmitry Marakasov 76533f1736 - Switch to new github home [1]
- Update WWW [1]
- Regenerate patches
- Add LICENSE

PR:		208858 [1]
Submitted by:	fcsk.aim@gmail.com [1]
2016-04-21 11:01:59 +00:00

20 lines
532 B
C++

--- src/nvcore/Memory.h.orig 2010-05-15 09:12:05 UTC
+++ src/nvcore/Memory.h
@@ -28,7 +28,7 @@ namespace nv
// Override new/delete
-inline void * operator new (size_t size) throw()
+inline void * operator new (size_t size) throw(std::bad_alloc)
{
return nv::mem::malloc(size);
}
@@ -38,7 +38,7 @@ inline void operator delete (void *p) th
nv::mem::free(p);
}
-inline void * operator new [] (size_t size) throw()
+inline void * operator new [] (size_t size) throw(std::bad_alloc)
{
return nv::mem::malloc(size);
}