blob: 8223c3cb17f79ab6b4dc47773d3984d3534e1aec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- squid-3.5.26.orig/include/SquidNew.h 2017-06-01 15:49:00.000000000 +0200
+++ squid-3.5.26/include/SquidNew.h 2017-06-13 03:13:51.928727436 +0200
@@ -18,19 +18,19 @@
*/
#include <new>
-_SQUID_EXTERNNEW_ void *operator new(size_t size) throw (std::bad_alloc)
+_SQUID_EXTERNNEW_ void *operator new(size_t size) noexcept(false)
{
return xmalloc(size);
}
-_SQUID_EXTERNNEW_ void operator delete (void *address) throw()
+_SQUID_EXTERNNEW_ void operator delete (void *address) noexcept(true)
{
xfree(address);
}
-_SQUID_EXTERNNEW_ void *operator new[] (size_t size) throw (std::bad_alloc)
+_SQUID_EXTERNNEW_ void *operator new[] (size_t size) noexcept(false)
{
return xmalloc(size);
}
-_SQUID_EXTERNNEW_ void operator delete[] (void *address) throw()
+_SQUID_EXTERNNEW_ void operator delete[] (void *address) noexcept(true)
{
xfree(address);
}
|